ARM: shmobile: rcar-gen2: Remove unused rcar_gen2_read_mode_pins()
After 1. commit9f5ce39ddb
("ARM: shmobile: rcar-gen2: Obtain extal frequency from DT"), 2. commit80951f04c3
("ARM: shmobile: rcar-gen2: Stop passing mode pins state to clock driver"), 3. and handling of debug resource reset, there are no more users of rcar_gen2_read_mode_pins() left. Remove the function and its support definitions. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
This commit is contained in:
Родитель
367ed998fa
Коммит
70def3e536
|
@ -2,8 +2,6 @@
|
|||
#define __ASM_RCAR_GEN2_H__
|
||||
|
||||
void rcar_gen2_timer_init(void);
|
||||
#define MD(nr) BIT(nr)
|
||||
u32 rcar_gen2_read_mode_pins(void);
|
||||
void rcar_gen2_reserve(void);
|
||||
void rcar_gen2_pm_init(void);
|
||||
|
||||
|
|
|
@ -29,24 +29,6 @@
|
|||
#include "common.h"
|
||||
#include "rcar-gen2.h"
|
||||
|
||||
#define MODEMR 0xe6160060
|
||||
|
||||
u32 rcar_gen2_read_mode_pins(void)
|
||||
{
|
||||
static u32 mode;
|
||||
static bool mode_valid;
|
||||
|
||||
if (!mode_valid) {
|
||||
void __iomem *modemr = ioremap_nocache(MODEMR, 4);
|
||||
BUG_ON(!modemr);
|
||||
mode = ioread32(modemr);
|
||||
iounmap(modemr);
|
||||
mode_valid = true;
|
||||
}
|
||||
|
||||
return mode;
|
||||
}
|
||||
|
||||
static unsigned int __init get_extal_freq(void)
|
||||
{
|
||||
struct device_node *cpg, *extal;
|
||||
|
|
Загрузка…
Ссылка в новой задаче