Pārlūkot izejas kodu

watchdog: shwdt: Remove unused platform_set_drvdata()

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

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Alexander Shiyan 11 gadi atpakaļ
vecāks
revīzija
ff4e0ae5fe
1 mainītis faili ar 0 papildinājumiem un 2 dzēšanām
  1. 0 2
      drivers/watchdog/shwdt.c

+ 0 - 2
drivers/watchdog/shwdt.c

@@ -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);