Skip to contentSkip to conversation

watchdog: shwdt: Remove unused platform_set_drvdata()

PATCH In review Alexander Shiyan 3 participants 3 messages Mar 29, 2014 – May 26, 2014 Watchdog device drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 watchdog: shwdt: Remove unused platform_set_drvdata()

This patch removes platform_set_drvdata() which is not used in the driver.

---
 drivers/watchdog/shwdt.c | 2 --
 1 file changed, 2 deletions(-)
drivers/watchdog/shwdt.c +0 -2
index d04d02b..061756e 100644
@@ -282,8 +282,6 @@ static int sh_wdt_probe(struct platform_device *pdev)
 	wdt->timer.data		= (unsigned long)wdt;
 	wdt->timer.expires	= next_ping_period(clock_division_ratio);
 
-	platform_set_drvdata(pdev, wdt);
-
 	dev_info(&pdev->dev, "initialized.\n");
 
 	pm_runtime_enable(&pdev->dev);
Signature · 1 line
1.8.3.2
#2 lore raw
In reply to Alexander Shiyan

Hi Alexander,

Quoted 13 lines

This patch removes platform_set_drvdata() which is not used in the driver.

---
 drivers/watchdog/shwdt.c | 2 --
 1 file changed, 2 deletions(-)
drivers/watchdog/shwdt.c +0 -0
index d04d02b..061756e 100644

drivers/watchdog/shwdt.c static int sh_wdt_probe(struct platform_device *pdev) · line 287

Quoted 8 lines
drivers/watchdog/shwdt.c +0 -2
@@ -282,8 +282,6 @@ static int sh_wdt_probe(struct platform_device *pdev)
 	wdt->timer.data		= (unsigned long)wdt;
 	wdt->timer.expires	= next_ping_period(clock_division_ratio);
 
-	platform_set_drvdata(pdev, wdt);
-
 	dev_info(&pdev->dev, "initialized.\n");
 
 	pm_runtime_enable(&pdev->dev);

This patch has been added to linux-watchdog-next.

Kind regards,
Wim.