mfd: exynos-lpass: Mark PM functions as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Tue, 6 Sep 2016 13:24:00 +0000 (15:24 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 4 Oct 2016 14:48:04 +0000 (15:48 +0100)
commit22a96b85eabd05a77bd1388d041d96ccc8f86459
tree50c1cdcbc515489613e63418a6dcbfe4bf8b1567
parentc50cdd62dda3f885c1e6ca8b3d5a0851c911ec54
mfd: exynos-lpass: Mark PM functions as __maybe_unused

The newly added exynos lpass driver produces a build warning when
CONFIG_PM is disabled since the only callers of exynos_lpass_disable
are under an #ifdef:

drivers/mfd/exynos-lpass.c:93:13: error: 'exynos_lpass_disable' defined but not used [-Werror=unused-function]
 static void exynos_lpass_disable(struct exynos_lpass *lpass)

This removes the #ifdef and replaces it with __maybe_unused annotations
so the compiler can leave out the unused code silently with less
room for mistakes.

Fixes: 36c26760bba8 ("mfd: Add Samsung Exynos Low Power Audio Subsystem driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/exynos-lpass.c