Commit a2c21668 authored by Wolfram Sang's avatar Wolfram Sang

i2c: at91: mark PM ops as __maybe unused

The driver uses pm_ptr(), so the PM ops could be unused.
Reported-by: default avatarkernel test robot <lkp@intel.com>
Fixes: dab4b0e8 ("i2c: at91: remove #define CONFIG_PM")
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
Reviewed-by: default avatarCodrin Ciubotariu <codrin.ciubotariu@microchip.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent e5a7cb0d
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment