summaryrefslogtreecommitdiffstats
path: root/drivers/phy
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-03-02 16:24:06 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-03-03 20:37:41 -0800
commit9fc7c85dc49116cb8209321ae343a26b82b37d2f (patch)
treed2e309733c5e6a3e2cc42c9293effd35b76760c1 /drivers/phy
parentd29051930becb9c63a9b13409722090e701cdacc (diff)
downloadop-kernel-dev-9fc7c85dc49116cb8209321ae343a26b82b37d2f.zip
op-kernel-dev-9fc7c85dc49116cb8209321ae343a26b82b37d2f.tar.gz
usb: ehci-atmel: use __maybe_unused to hide pm functions
The ehci-atmel driver uses #ifdef to check for CONFIG_PM, but then uses SIMPLE_DEV_PM_OPS, which leaves the references out when CONFIG_PM_SLEEP is not defined, so we get a warning with PM=y && PM_SLEEP=n: drivers/usb/host/ehci-atmel.c:189:12: error: 'ehci_atmel_drv_suspend' defined but not used [-Werror=unused-function] drivers/usb/host/ehci-atmel.c:203:12: error: 'ehci_atmel_drv_resume' defined but not used [-Werror=unused-function] This removes the incorrect #ifdef and instead uses a __maybe_unused annotation to let the compiler know it can silently drop the function definition. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/phy')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud