media: bcm2835-unicam: Fix build with !PM
authorRicardo Ribalda <ribalda@chromium.org>
Wed, 1 May 2024 13:08:09 +0000 (14:08 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 2 May 2024 10:12:04 +0000 (11:12 +0100)
The driver can only match the device vide the DT table, so the table
should always be used, of_match_ptr does not make sense here.

It fixes this warning:
drivers/media/platform/broadcom/bcm2835-unicam.c:2724:34: warning: â€˜unicam_of_match’ defined but not used [-Wunused-const-variable=]

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/broadcom/bcm2835-unicam.c

index bd2bbb53070e0f77d5a2c7eef55fc05748f700f0..c590e26fe2cfed3842ea8656c274bf675d831e1b 100644 (file)
@@ -2733,7 +2733,7 @@ static struct platform_driver unicam_driver = {
        .driver = {
                .name   = UNICAM_MODULE_NAME,
                .pm     = pm_ptr(&unicam_pm_ops),
-               .of_match_table = of_match_ptr(unicam_of_match),
+               .of_match_table = unicam_of_match,
        },
 };