Commit b23c1f80 authored by Xingyu Wu's avatar Xingyu Wu Committed by Wim Van Sebroeck

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: db728ea9 ("drivers: watchdog: Add StarFive Watchdog driver")
Signed-off-by: default avatarXingyu Wu <xingyu.wu@starfivetech.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20230427074400.55380-1-xingyu.wu@starfivetech.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@linux-watchdog.org>
parent 90211b58
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment