Re: [PATCH 03/14] power: ipaq-micro-battery: use __maybe_unused to hide pm functions

2016-03-03 Thread Sebastian Reichel
Hi, On Wed, Mar 02, 2016 at 04:58:55PM +0100, Arnd Bergmann wrote: > The ipaq micro battery driver has suspend/resume functions that > are accessed using SIMPLE_DEV_PM_OPS, which hide the reference > when CONFIG_PM_SLEEP is not set, resulting in a warning about > unused functions: > > drivers/pow

[PATCH 03/14] power: ipaq-micro-battery: use __maybe_unused to hide pm functions

2016-03-02 Thread Arnd Bergmann
The ipaq micro battery driver has suspend/resume functions that are accessed using SIMPLE_DEV_PM_OPS, which hide the reference when CONFIG_PM_SLEEP is not set, resulting in a warning about unused functions: drivers/power/ipaq_micro_battery.c:284:12: error: 'micro_batt_suspend' defined but not use