Skip to content

Commit b23c1f8

Browse files
SFxingyuwuWim Van Sebroeck
authored andcommitted
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: db728ea ("drivers: watchdog: Add StarFive Watchdog driver") Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20230427074400.55380-1-xingyu.wu@starfivetech.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
1 parent 90211b5 commit b23c1f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/watchdog/starfive-wdt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ static struct platform_driver starfive_wdt_driver = {
595595
.driver = {
596596
.name = "starfive-wdt",
597597
.pm = &starfive_wdt_pm_ops,
598-
.of_match_table = of_match_ptr(starfive_wdt_match),
598+
.of_match_table = starfive_wdt_match,
599599
},
600600
};
601601
module_platform_driver(starfive_wdt_driver);

0 commit comments

Comments
 (0)