diff options
author | Arnd Bergmann | 2018-02-26 15:18:04 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab | 2018-02-26 16:38:56 +0100 |
commit | 15ea2df9143729a2b722d4ca2b52cfa14a819d8e (patch) | |
tree | d8578931ab3bd120fe43ea69c4d9801ae86803a6 /Documentation/media/uapi | |
parent | media: ov5695: mark PM functions as __maybe_unused (diff) | |
download | kernel-qcow2-linux-15ea2df9143729a2b722d4ca2b52cfa14a819d8e.tar.gz kernel-qcow2-linux-15ea2df9143729a2b722d4ca2b52cfa14a819d8e.tar.xz kernel-qcow2-linux-15ea2df9143729a2b722d4ca2b52cfa14a819d8e.zip |
media: ov2685: mark PM functions as __maybe_unused
Without CONFIG_PM, we get a harmless build warning:
drivers/media/i2c/ov2685.c:516:12: error: 'ov2685_runtime_suspend' defined but not used [-Werror=unused-function]
static int ov2685_runtime_suspend(struct device *dev)
^~~~~~~~~~~~~~~~~~~~~~
drivers/media/i2c/ov2685.c:507:12: error: 'ov2685_runtime_resume' defined but not used [-Werror=unused-function]
static int ov2685_runtime_resume(struct device *dev)
This marks the affected functions as __maybe_unused.
Fixes: e3861d9118c8 ("media: ov2685: add support for OV2685 sensor")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
[hans.verkuil@cisco.com: fixed typo in Subject: was ov5695]
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'Documentation/media/uapi')
0 files changed, 0 insertions, 0 deletions