|
@@ -275,9 +275,7 @@ static int sh_wdt_probe(struct platform_device *pdev)
|
|
|
return rc;
|
|
|
}
|
|
|
|
|
|
- init_timer(&wdt->timer);
|
|
|
- wdt->timer.function = sh_wdt_ping;
|
|
|
- wdt->timer.data = (unsigned long)wdt;
|
|
|
+ setup_timer(&wdt->timer, sh_wdt_ping, (unsigned long)wdt);
|
|
|
wdt->timer.expires = next_ping_period(clock_division_ratio);
|
|
|
|
|
|
dev_info(&pdev->dev, "initialized.\n");
|