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

From: Florian Fainelli
Date: Tue Nov 03 2020 - 22:28:46 EST




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@xxxxxxxxx>

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