[PATCH 3/5] i2c: brcmstb: remove unnecessary CONFIG_PM_SLEEP

Florian Fainelli f.fainelli at gmail.com
Tue Nov 3 22:28:39 EST 2020



On 10/29/2020 12:46 AM, Coiby Xu wrote:
> SIMPLE_DEV_PM_OPS has already took good care of CONFIG_PM_CONFIG.
> 
> Signed-off-by: Coiby Xu <coiby.xu at gmail.com>

You need to annotate brcmstb_i2c_suspend and brcmstb_i2c_resume with
__maybe_unused to avoid generating compiler warnings about unused
functions with CONFIG_PM_SLEEP disabled.
-- 
Florian



More information about the linux-arm-kernel mailing list