media: platform: ti: am437x: drop of_match_ptr for ID table
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 12 Mar 2023 13:13:01 +0000 (14:13 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 14 Jul 2023 10:33:04 +0000 (12:33 +0200)
The driver can match only via the DT table so the table should be always
used and the of_match_ptr does not have any sense (this also allows ACPI
matching via PRP0001, even though it might not be relevant here).  This
also fixes !CONFIG_OF error:

  drivers/media/platform/ti/am437x/am437x-vpfe.c:2620:34: error: ‘vpfe_of_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Lad Prabhakar <prabhakar.csengg@gmail.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/ti/am437x/am437x-vpfe.c

index ffe1887cc429b67f739b6e3c519fcb5f455c2775..81a63a3865cfaa866b172f53a2cbf6c0cee62c78 100644 (file)
@@ -2630,7 +2630,7 @@ static struct platform_driver vpfe_driver = {
        .driver = {
                .name   = VPFE_MODULE_NAME,
                .pm     = &vpfe_pm_ops,
-               .of_match_table = of_match_ptr(vpfe_of_match),
+               .of_match_table = vpfe_of_match,
        },
 };