i2c: at91: mark PM ops as __maybe unused
PATCH 1/1 i2c: at91: mark PM ops as __maybe unused
The driver uses pm_ptr(), so the PM ops could be unused.
Reported-by kernel test robot <[email protected]>
Fixes dab4b0e8c9a5 ("i2c: at91: remove #define CONFIG_PM")
Signed-off-by Wolfram Sang <[email protected]>
--- drivers/i2c/busses/i2c-at91-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/i2c-at91-core.c +1 -1
@@ -333,7 +333,7 @@ static int __maybe_unused at91_twi_resume_noirq(struct device *dev)return 0 ; } -static const struct dev_pm_ops at91_twi_pm = { +static const struct dev_pm_ops __maybe_unused at91_twi_pm = { .suspend_noirq = at91_twi_suspend_noirq, .resume_noirq = at91_twi_resume_noirq, .runtime_suspend = at91_twi_runtime_suspend,
Signature · 1 line
2.30.2
Quoted 5 lines · Wolfram Sang
The driver uses
pm_ptr(), so the PM ops could be unused.Reported-by kernel test robot <[email protected]>Fixes dab4b0e8c9a5 ("i2c: at91: remove #define CONFIG_PM")Signed-off-by Wolfram Sang <[email protected]>
Reviewed-by Codrin Ciubotariu <[email protected]>
Thanks!
Wolfram Sang
AppliedQuoted 5 lines · Wolfram Sang
The driver uses
pm_ptr(), so the PM ops could be unused.Reported-by kernel test robot <[email protected]>Fixes dab4b0e8c9a5 ("i2c: at91: remove #define CONFIG_PM")Signed-off-by Wolfram Sang <[email protected]>
Applied to for-next, thanks!