diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-02-28 18:19:37 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-03-06 12:24:24 -0500 |
commit | 997ef6b2627c54f5404c2f444e52c7140d1b6d01 (patch) | |
tree | ea4e19f3c4e31e16865a3a259e40e4589396ad82 /security | |
parent | 309131594016651ab44753ea447a36987e8f4c23 (diff) | |
download | blackbird-op-linux-997ef6b2627c54f5404c2f444e52c7140d1b6d01.tar.gz blackbird-op-linux-997ef6b2627c54f5404c2f444e52c7140d1b6d01.zip |
media: renesas-ceu: mark PM functions as __maybe_unused
The PM runtime operations are unused when CONFIG_PM is disabled,
leading to a harmless warning:
drivers/media/platform/renesas-ceu.c:1003:12: error: 'ceu_runtime_suspend' defined but not used [-Werror=unused-function]
static int ceu_runtime_suspend(struct device *dev)
^~~~~~~~~~~~~~~~~~~
drivers/media/platform/renesas-ceu.c:987:12: error: 'ceu_runtime_resume' defined but not used [-Werror=unused-function]
static int ceu_runtime_resume(struct device *dev)
^~~~~~~~~~~~~~~~~~
This adds a __maybe_unused annotation to shut up the warning.
Fixes: 32e5a70dc8f4 ("media: platform: Add Renesas CEU driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions