diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-01-13 06:46:31 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2015-12-01 15:44:33 -0500 |
commit | 84f45ee9d7f08cc0c0f9276573e1bdf53ccdd58b (patch) | |
tree | 0d9eb367af29d614173ed6c302c05afe45fee548 /arch/arm/mach-mmp | |
parent | 377524dc4d77f50e19392d619f531cc3c9435d1b (diff) |
ARM: mmp: avoid unused functions
mach-mmp/devices.c:81:21: warning: 'u2o_get' defined but not used [-Wunused-function]
static unsigned int u2o_get(void __iomem *base, unsigned int offset)
^
mach-mmp/devices.c:86:13: warning: 'u2o_set' defined but not used [-Wunused-function]
static void u2o_set(void __iomem *base, unsigned int offset,
^
mach-mmp/devices.c:97:13: warning: 'u2o_clear' defined but not used [-Wunused-function]
static void u2o_clear(void __iomem *base, unsigned int offset,
^
mach-mmp/devices.c:108:13: warning: 'u2o_write' defined but not used [-Wunused-function]
static void u2o_write(void __iomem *base, unsigned int offset,
^
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-mmp')
-rw-r--r-- | arch/arm/mach-mmp/devices.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-mmp/devices.c b/arch/arm/mach-mmp/devices.c index 335c97aa9a2c..3330ac7cfbef 100644 --- a/arch/arm/mach-mmp/devices.c +++ b/arch/arm/mach-mmp/devices.c | |||
@@ -73,6 +73,8 @@ int __init pxa_register_device(struct pxa_device_desc *desc, | |||
73 | } | 73 | } |
74 | 74 | ||
75 | #if IS_ENABLED(CONFIG_USB) || IS_ENABLED(CONFIG_USB_GADGET) | 75 | #if IS_ENABLED(CONFIG_USB) || IS_ENABLED(CONFIG_USB_GADGET) |
76 | #if IS_ENABLED(CONFIG_USB_MV_UDC) || IS_ENABLED(CONFIG_USB_EHCI_MV) | ||
77 | #if IS_ENABLED(CONFIG_CPU_PXA910) || IS_ENABLED(CONFIG_CPU_PXA168) | ||
76 | 78 | ||
77 | /***************************************************************************** | 79 | /***************************************************************************** |
78 | * The registers read/write routines | 80 | * The registers read/write routines |
@@ -112,9 +114,6 @@ static void u2o_write(void __iomem *base, unsigned int offset, | |||
112 | readl_relaxed(base + offset); | 114 | readl_relaxed(base + offset); |
113 | } | 115 | } |
114 | 116 | ||
115 | #if IS_ENABLED(CONFIG_USB_MV_UDC) || IS_ENABLED(CONFIG_USB_EHCI_MV) | ||
116 | |||
117 | #if IS_ENABLED(CONFIG_CPU_PXA910) || IS_ENABLED(CONFIG_CPU_PXA168) | ||
118 | 117 | ||
119 | static DEFINE_MUTEX(phy_lock); | 118 | static DEFINE_MUTEX(phy_lock); |
120 | static int phy_init_cnt; | 119 | static int phy_init_cnt; |