]> Git Repo - J-linux.git/commitdiff
hwspinlock: omap: drop of_match_ptr for ID table
authorKrzysztof Kozlowski <[email protected]>
Fri, 12 May 2023 16:45:20 +0000 (18:45 +0200)
committerBjorn Andersson <[email protected]>
Wed, 14 Jun 2023 15:15:24 +0000 (08:15 -0700)
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).

  drivers/hwspinlock/omap_hwspinlock.c:164:34: error: ‘omap_hwspinlock_of_match’ defined but not used [-Werror=unused-const-variable=]

Reviewed-by: Baolin Wang <[email protected]>
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
drivers/hwspinlock/omap_hwspinlock.c

index 1fb3a2550e2929c46b9394fff5a1a42509249aa0..dfe82952671b1584ade4c48c6864352fd211e468 100644 (file)
@@ -174,7 +174,7 @@ static struct platform_driver omap_hwspinlock_driver = {
        .remove         = omap_hwspinlock_remove,
        .driver         = {
                .name   = "omap_hwspinlock",
-               .of_match_table = of_match_ptr(omap_hwspinlock_of_match),
+               .of_match_table = omap_hwspinlock_of_match,
        },
 };
 
This page took 0.052495 seconds and 4 git commands to generate.