Skip to contentSkip to conversation

watchdog: starfive: Fix the warning of starfive_wdt_match

PATCH In review Xingyu Wu 2 participants 2 messages Apr 27, 2023

Subsystems (2)
lore
Share & tools
lore

Xingyu Wu

author maintainer
#0 lore raw

PATCH 1/1 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")

---

Hi, Guenter and Wim,

This patch fixes the compiler warning of StarFive watchdog driver and rebases on the master branch of linux-next.

Thanks.

---
 drivers/watchdog/starfive-wdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/watchdog/starfive-wdt.c +1 -1
index 1995cceca51e..64d1ad4d267a 100644
@@ -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);
Signature · 1 line
2.25.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Xingyu Wu

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")

---

Quoted 25 lines

Hi, Guenter and Wim,

This patch fixes the compiler warning of StarFive watchdog driver and rebases on the master branch of linux-next.

Thanks.

---
  drivers/watchdog/starfive-wdt.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/watchdog/starfive-wdt.c +1 -1
index 1995cceca51e..64d1ad4d267a 100644
@@ -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);