Commit
0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
ret = misc_register(&wdt->miscdev);
if (ret) {
dev_dbg(&pdev->dev, "failed to register wdt miscdev\n");
- goto err_register;
+ goto err_free;
}
dev_info(&pdev->dev,
return 0;
-err_register:
- platform_set_drvdata(pdev, NULL);
err_free:
wdt = NULL;
return ret;
misc_deregister(&wdt->miscdev);
wdt = NULL;
- platform_set_drvdata(pdev, NULL);
}
return 0;
}