summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/ipaq-micro.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-03-02 16:58:57 +0100
committerLee Jones <lee.jones@linaro.org>2016-03-16 08:50:41 +0000
commitdcdf11739d768febbfb7ecf5388761cce1f48ffc (patch)
tree1947c0aa6fc436cd60e18e5ba9f08599f5309f8d /drivers/mfd/ipaq-micro.c
parent95a6f715bcab610237530d266f8d8f752af6cd6f (diff)
downloadop-kernel-dev-dcdf11739d768febbfb7ecf5388761cce1f48ffc.zip
op-kernel-dev-dcdf11739d768febbfb7ecf5388761cce1f48ffc.tar.gz
mfd: ipaq-micro: Use __maybe_unused to hide pm functions
The ipaq-micro driver uses SET_SYSTEM_SLEEP_PM_OPS() to remove the reference to its resume function, but does not use an #ifdef around the definition, so we get a build warning: drivers/mfd/ipaq-micro.c:379:12: error: 'micro_resume' defined but not used [-Werror=unused-function] This adds a __maybe_unused annotation so the compiler knows it can silently drop it instead of warning. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/ipaq-micro.c')
-rw-r--r--drivers/mfd/ipaq-micro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/ipaq-micro.c b/drivers/mfd/ipaq-micro.c
index a41859c..df16fd1 100644
--- a/drivers/mfd/ipaq-micro.c
+++ b/drivers/mfd/ipaq-micro.c
@@ -376,7 +376,7 @@ static const struct mfd_cell micro_cells[] = {
{ .name = "ipaq-micro-leds", },
};
-static int micro_resume(struct device *dev)
+static int __maybe_unused micro_resume(struct device *dev)
{
struct ipaq_micro *micro = dev_get_drvdata(dev);
OpenPOWER on IntegriCloud