diff options
Diffstat (limited to 'drivers/rtc/rtc-ep93xx.c')
-rw-r--r-- | drivers/rtc/rtc-ep93xx.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-ep93xx.c b/drivers/rtc/rtc-ep93xx.c index 5807b77c444a..549b3c3792d2 100644 --- a/drivers/rtc/rtc-ep93xx.c +++ b/drivers/rtc/rtc-ep93xx.c | |||
@@ -167,7 +167,6 @@ static int ep93xx_rtc_probe(struct platform_device *pdev) | |||
167 | return 0; | 167 | return 0; |
168 | 168 | ||
169 | exit: | 169 | exit: |
170 | platform_set_drvdata(pdev, NULL); | ||
171 | pdev->dev.platform_data = NULL; | 170 | pdev->dev.platform_data = NULL; |
172 | return err; | 171 | return err; |
173 | } | 172 | } |
@@ -175,7 +174,6 @@ exit: | |||
175 | static int ep93xx_rtc_remove(struct platform_device *pdev) | 174 | static int ep93xx_rtc_remove(struct platform_device *pdev) |
176 | { | 175 | { |
177 | sysfs_remove_group(&pdev->dev.kobj, &ep93xx_rtc_sysfs_files); | 176 | sysfs_remove_group(&pdev->dev.kobj, &ep93xx_rtc_sysfs_files); |
178 | platform_set_drvdata(pdev, NULL); | ||
179 | pdev->dev.platform_data = NULL; | 177 | pdev->dev.platform_data = NULL; |
180 | 178 | ||
181 | return 0; | 179 | return 0; |