Messages in this thread | | | Subject | Re: [PATCH 3/5] i2c: brcmstb: remove unnecessary CONFIG_PM_SLEEP | From | Florian Fainelli <> | Date | Tue, 3 Nov 2020 19:28:39 -0800 |
| |
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@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
| |