diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2022-11-28 13:55:43 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-12-06 07:15:42 +0000 |
commit | 5edd1b4d58105dc0ee61ed6aa9f22e88d8425b08 (patch) | |
tree | 98e594104f42d8f469b4adaef71bfbd8e2620259 | |
parent | dc8239bd8979e66fd92d1fc41e8aa69fde4257b3 (diff) | |
download | linux-5edd1b4d58105dc0ee61ed6aa9f22e88d8425b08.tar.gz linux-5edd1b4d58105dc0ee61ed6aa9f22e88d8425b08.tar.bz2 linux-5edd1b4d58105dc0ee61ed6aa9f22e88d8425b08.zip |
media: i2c: tc358746: make DEFINE_RUNTIME_DEV_PM_OPS static
DEFINE_RUNTIME_DEV_PM_OPS should be static.
This fixes this sparse warning:
drivers/media/i2c/tc358746.c:1671:1: warning: symbol 'tc358746_pm_ops' was not declared. Should it be static?
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reviewed-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
-rw-r--r-- | drivers/media/i2c/tc358746.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/i2c/tc358746.c b/drivers/media/i2c/tc358746.c index 171309c62bb8..d1f552bd81d4 100644 --- a/drivers/media/i2c/tc358746.c +++ b/drivers/media/i2c/tc358746.c @@ -1668,8 +1668,8 @@ err: return err; } -DEFINE_RUNTIME_DEV_PM_OPS(tc358746_pm_ops, tc358746_suspend, - tc358746_resume, NULL); +static DEFINE_RUNTIME_DEV_PM_OPS(tc358746_pm_ops, tc358746_suspend, + tc358746_resume, NULL); static const struct of_device_id __maybe_unused tc358746_of_match[] = { { .compatible = "toshiba,tc358746" }, |