diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-10-19 05:30:34 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-10-31 07:21:56 -0400 |
commit | 94b28441c9c7168bfdef932703f968a43ba77f97 (patch) | |
tree | 8eee0589643be93e5d2b688fa9c304dfc95f614d /drivers/media/usb/usbtv | |
parent | 60757ee62be7ef4f2452265ab20cdf1f0b5d7934 (diff) | |
download | linux-94b28441c9c7168bfdef932703f968a43ba77f97.tar.bz2 |
media: rockchip/rga: annotate PM functions as __maybe_unused
The newly added driver has incorrect #ifdef annotations on its
PM functions, leading to a harmless compile-time warning when
CONFIG_PM is disabled:
drivers/media/platform/rockchip/rga/rga.c:760:13: error: 'rga_disable_clocks' defined but not used [-Werror=unused-function]
static void rga_disable_clocks(struct rockchip_rga *rga)
^~~~~~~~~~~~~~~~~~
drivers/media/platform/rockchip/rga/rga.c:728:12: error: 'rga_enable_clocks' defined but not used [-Werror=unused-function]
This removes the #ifdef and marks the functions as __maybe_unused,
so gcc can silently drop all the unused code.
Fixes: f7e7b48e6d79 ("[media] rockchip/rga: v4l2 m2m support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/usbtv')
0 files changed, 0 insertions, 0 deletions