Re: [PATCH 04/14] power: pm2301-charger: use __maybe_unused to hide pm functions

2016-03-03 Thread Sebastian Reichel
Hi, On Wed, Mar 02, 2016 at 04:58:56PM +0100, Arnd Bergmann wrote: > The pm2301 charger driver uses nested #ifdefs to check for both > CONFIG_PM and CONFIG_PM_SLEEP in an attempt to hide its > suspend and runtime-pm operations when they are unused, but > it does not hide the clear_lpn_pin() functi

[PATCH 04/14] power: pm2301-charger: use __maybe_unused to hide pm functions

2016-03-02 Thread Arnd Bergmann
The pm2301 charger driver uses nested #ifdefs to check for both CONFIG_PM and CONFIG_PM_SLEEP in an attempt to hide its suspend and runtime-pm operations when they are unused, but it does not hide the clear_lpn_pin() function in the same way, so we get a build warning when everything is disabled: