aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXingyu Wu <[email protected]>2023-04-27 15:44:00 +0800
committerWim Van Sebroeck <[email protected]>2023-04-29 08:08:41 +0200
commitb23c1f807cb20a9a4c42b63c3d80f63b045a43ef (patch)
tree7822921c344355158b7866c22ebadfc3ce9a4400
parent90211b58828924577b589e59814f53aec4557fb9 (diff)
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 <[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]>
-rw-r--r--drivers/watchdog/starfive-wdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/starfive-wdt.c b/drivers/watchdog/starfive-wdt.c
index 8f378900624d..8058fca4d05d 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);