|
@@ -282,7 +282,7 @@ static int wm831x_wdt_probe(struct platform_device *pdev)
|
|
goto err;
|
|
goto err;
|
|
}
|
|
}
|
|
|
|
|
|
- dev_set_drvdata(&pdev->dev, driver_data);
|
|
|
|
|
|
+ platform_set_drvdata(pdev, driver_data);
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
@@ -292,7 +292,7 @@ err:
|
|
|
|
|
|
static int wm831x_wdt_remove(struct platform_device *pdev)
|
|
static int wm831x_wdt_remove(struct platform_device *pdev)
|
|
{
|
|
{
|
|
- struct wm831x_wdt_drvdata *driver_data = dev_get_drvdata(&pdev->dev);
|
|
|
|
|
|
+ struct wm831x_wdt_drvdata *driver_data = platform_get_drvdata(pdev);
|
|
|
|
|
|
watchdog_unregister_device(&driver_data->wdt);
|
|
watchdog_unregister_device(&driver_data->wdt);
|
|
|
|
|