Skip to content

Commit

Permalink
i2c: at91: mark PM ops as __maybe unused
Browse files Browse the repository at this point in the history
The driver uses pm_ptr(), so the PM ops could be unused.

Reported-by: kernel test robot <[email protected]>
Fixes: dab4b0e ("i2c: at91: remove #define CONFIG_PM")
Signed-off-by: Wolfram Sang <[email protected]>
Reviewed-by: Codrin Ciubotariu <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
  • Loading branch information
wsakernel committed Aug 11, 2021
1 parent e5a7cb0 commit a2c2166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-at91-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a2c2166

Please sign in to comment.