• Arnd Bergmann's avatar
    mfd: rk808: Mark pm functions __maybe_unused · 5752bc43
    Arnd Bergmann authored
    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: 586c1b41 ("mfd: rk808: Add RK817 and RK809 support")
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
    5752bc43
rk808.c 19 KB