Commit 84f45ee9 authored by Arnd Bergmann's avatar Arnd Bergmann

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: default avatarArnd Bergmann <arnd@arndb.de>
parent 377524dc
...@@ -73,6 +73,8 @@ int __init pxa_register_device(struct pxa_device_desc *desc, ...@@ -73,6 +73,8 @@ int __init pxa_register_device(struct pxa_device_desc *desc,
} }
#if IS_ENABLED(CONFIG_USB) || IS_ENABLED(CONFIG_USB_GADGET) #if IS_ENABLED(CONFIG_USB) || IS_ENABLED(CONFIG_USB_GADGET)
#if IS_ENABLED(CONFIG_USB_MV_UDC) || IS_ENABLED(CONFIG_USB_EHCI_MV)
#if IS_ENABLED(CONFIG_CPU_PXA910) || IS_ENABLED(CONFIG_CPU_PXA168)
/***************************************************************************** /*****************************************************************************
* The registers read/write routines * The registers read/write routines
...@@ -112,9 +114,6 @@ static void u2o_write(void __iomem *base, unsigned int offset, ...@@ -112,9 +114,6 @@ static void u2o_write(void __iomem *base, unsigned int offset,
readl_relaxed(base + offset); readl_relaxed(base + offset);
} }
#if IS_ENABLED(CONFIG_USB_MV_UDC) || IS_ENABLED(CONFIG_USB_EHCI_MV)
#if IS_ENABLED(CONFIG_CPU_PXA910) || IS_ENABLED(CONFIG_CPU_PXA168)
static DEFINE_MUTEX(phy_lock); static DEFINE_MUTEX(phy_lock);
static int phy_init_cnt; static int phy_init_cnt;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment