]> Git Repo - J-linux.git/commitdiff
watchdog: starfive: Fix the warning of starfive_wdt_match
authorXingyu Wu <[email protected]>
Thu, 27 Apr 2023 07:44:00 +0000 (15:44 +0800)
committerWim Van Sebroeck <[email protected]>
Sat, 29 Apr 2023 06:08:41 +0000 (08:08 +0200)
Drop the function of of_match_ptr() to fix the warning of unused variable
'starfive_wdt_match'.

Fixes: db728ea9c7be ("drivers: watchdog: Add StarFive Watchdog driver")
Signed-off-by: Xingyu Wu <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
drivers/watchdog/starfive-wdt.c

index 8f378900624dec3f423f8e9c4afa0bde5f518b0b..8058fca4d05d3709d100f7b81dfc0dd023c21c2a 100644 (file)
@@ -595,7 +595,7 @@ static struct platform_driver starfive_wdt_driver = {
        .driver = {
                .name = "starfive-wdt",
                .pm = &starfive_wdt_pm_ops,
-               .of_match_table = of_match_ptr(starfive_wdt_match),
+               .of_match_table = starfive_wdt_match,
        },
 };
 module_platform_driver(starfive_wdt_driver);
This page took 0.049821 seconds and 4 git commands to generate.