|
@@ -224,7 +224,6 @@ static int puv3_rtc_remove(struct platform_device *dev)
|
|
{
|
|
{
|
|
struct rtc_device *rtc = platform_get_drvdata(dev);
|
|
struct rtc_device *rtc = platform_get_drvdata(dev);
|
|
|
|
|
|
- platform_set_drvdata(dev, NULL);
|
|
|
|
rtc_device_unregister(rtc);
|
|
rtc_device_unregister(rtc);
|
|
|
|
|
|
puv3_rtc_setpie(&dev->dev, 0);
|
|
puv3_rtc_setpie(&dev->dev, 0);
|