diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2016-03-02 10:59:06 -0500 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2016-03-04 22:53:40 -0500 |
| commit | d8fc2198aab117a4bc16ee305caef19c4c7e7f5c (patch) | |
| tree | 4cd009c468927a51a9af702e470655332b8b2309 | |
| parent | ea2e5b96bd6e835052981b777253def60cfd905f (diff) | |
ASoC: rockchip: use __maybe_unused to hide st_irq_syscfg_resume
The rockchip spdif driver uses SIMPLE_DEV_PM_OPS to conditionally
set its power management functions, but we get a warning
about rk_spdif_runtime_resume being unused when CONFIG_PM is not
set:
sound/soc/rockchip/rockchip_spdif.c:67:12: error: 'rk_spdif_runtime_resume' defined but not used [-Werror=unused-function]
This adds a __maybe_unused annotation so the compiler knows
it can silently drop it instead of warning.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
| -rw-r--r-- | sound/soc/rockchip/rockchip_spdif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/rockchip/rockchip_spdif.c b/sound/soc/rockchip/rockchip_spdif.c index 5a806da89f42..274599d4caeb 100644 --- a/sound/soc/rockchip/rockchip_spdif.c +++ b/sound/soc/rockchip/rockchip_spdif.c | |||
| @@ -54,7 +54,7 @@ static const struct of_device_id rk_spdif_match[] = { | |||
| 54 | }; | 54 | }; |
| 55 | MODULE_DEVICE_TABLE(of, rk_spdif_match); | 55 | MODULE_DEVICE_TABLE(of, rk_spdif_match); |
| 56 | 56 | ||
| 57 | static int rk_spdif_runtime_suspend(struct device *dev) | 57 | static int __maybe_unused rk_spdif_runtime_suspend(struct device *dev) |
| 58 | { | 58 | { |
| 59 | struct rk_spdif_dev *spdif = dev_get_drvdata(dev); | 59 | struct rk_spdif_dev *spdif = dev_get_drvdata(dev); |
| 60 | 60 | ||
| @@ -64,7 +64,7 @@ static int rk_spdif_runtime_suspend(struct device *dev) | |||
| 64 | return 0; | 64 | return 0; |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | static int rk_spdif_runtime_resume(struct device *dev) | 67 | static int __maybe_unused rk_spdif_runtime_resume(struct device *dev) |
| 68 | { | 68 | { |
| 69 | struct rk_spdif_dev *spdif = dev_get_drvdata(dev); | 69 | struct rk_spdif_dev *spdif = dev_get_drvdata(dev); |
| 70 | int ret; | 70 | int ret; |
