media: i2c: tc358746: make DEFINE_RUNTIME_DEV_PM_OPS static
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 28 Nov 2022 13:55:43 +0000 (13:55 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 6 Dec 2022 07:15:42 +0000 (07:15 +0000)
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>
drivers/media/i2c/tc358746.c

index 171309c..d1f552b 100644 (file)
@@ -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" },