From: Krzysztof Kozlowski Date: Fri, 12 May 2023 16:45:20 +0000 (+0200) Subject: hwspinlock: omap: drop of_match_ptr for ID table X-Git-Tag: v6.6.7~2441^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b39e7607144337d752f36c2068ed79447462f99;p=platform%2Fkernel%2Flinux-starfive.git hwspinlock: omap: drop of_match_ptr for ID table 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 Signed-off-by: Krzysztof Kozlowski Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20230512164520.212312-1-krzysztof.kozlowski@linaro.org --- diff --git a/drivers/hwspinlock/omap_hwspinlock.c b/drivers/hwspinlock/omap_hwspinlock.c index 1fb3a25..dfe8295 100644 --- a/drivers/hwspinlock/omap_hwspinlock.c +++ b/drivers/hwspinlock/omap_hwspinlock.c @@ -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, }, };