From: Alexander Shiyan Date: Sat, 29 Mar 2014 10:29:00 +0000 (+0400) Subject: watchdog: shwdt: Remove unused platform_set_drvdata() X-Git-Tag: firefly_0821_release~176^2~3788^2~20 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=ff4e0ae5feaffd69ecf115555c6437cf4f71f806;p=firefly-linux-kernel-4.4.55.git 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 Reviewed-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck --- diff --git a/drivers/watchdog/shwdt.c b/drivers/watchdog/shwdt.c index d04d02b41c32..061756e36cf8 100644 --- a/drivers/watchdog/shwdt.c +++ b/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);