diff options
author | Arnd Bergmann | 2019-07-08 14:53:02 +0200 |
---|---|---|
committer | Lee Jones | 2019-08-27 07:35:44 +0100 |
commit | 5752bc4373b21c3fb1dd6db4dcdd569fae391a1d (patch) | |
tree | f1660ab621265248b09e3cb6eb81641050363f5b /drivers/mfd/tps68470.c | |
parent | 5f9e832c137075045d15cd6899ab0505cfb2ca4b (diff) |
mfd: rk808: Mark pm functions __maybe_unused
The newly added suspend/resume functions are only used if CONFIG_PM
is enabled:
drivers/mfd/rk808.c:752:12: error: 'rk8xx_resume' defined but not used [-Werror=unused-function]
drivers/mfd/rk808.c:732:12: error: 'rk8xx_suspend' defined but not used [-Werror=unused-function]
Mark them as __maybe_unused so the compiler can silently drop them
when they are not needed.
Fixes: 586c1b4125b3 ("mfd: rk808: Add RK817 and RK809 support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/tps68470.c')
0 files changed, 0 insertions, 0 deletions