From: Xingyu Wu Date: Thu, 27 Apr 2023 07:44:00 +0000 (+0800) Subject: watchdog: starfive: Fix the warning of starfive_wdt_match X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b23c1f807cb20a9a4c42b63c3d80f63b045a43ef;p=linux.git watchdog: starfive: Fix the warning of starfive_wdt_match 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 Reviewed-by: Guenter Roeck Link: https://lore.kernel.org/r/20230427074400.55380-1-xingyu.wu@starfivetech.com Signed-off-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck --- diff --git a/drivers/watchdog/starfive-wdt.c b/drivers/watchdog/starfive-wdt.c index 8f378900624de..8058fca4d05d3 100644 --- a/drivers/watchdog/starfive-wdt.c +++ b/drivers/watchdog/starfive-wdt.c @@ -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);