power: bq24190_charger: mark PM functions as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Mon, 20 Mar 2017 13:14:15 +0000 (14:14 +0100)
committerSebastian Reichel <sre@kernel.org>
Thu, 13 Apr 2017 23:41:34 +0000 (01:41 +0200)
commitb98074e2adc21b52b59e2c7889f58d0c9f6fd8e5
tree29bb8f239f19fa31ddd1b1ed9bd72d37be616930
parentdba83476966b725736f99afb7d80c945c06ba6dc
power: bq24190_charger: mark PM functions as __maybe_unused

Without CONFIG_PM, we get a harmless warning:

drivers/power/supply/bq24190_charger.c:1514:12: error: 'bq24190_runtime_resume' defined but not used [-Werror=unused-function]
drivers/power/supply/bq24190_charger.c:1501:12: error: 'bq24190_runtime_suspend' defined but not used [-Werror=unused-function]

To avoid the warning, we can mark all four PM functions as __maybe_unused,
which also lets us remove the incorrect #ifdef.

Fixes: 3d8090cba638 ("power: bq24190_charger: Check the interrupt status on resume")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Liam Breck <kernel@networkimprov.net>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/bq24190_charger.c