Commit 3fc2c14a authored by Nizam Haider's avatar Nizam Haider Committed by Alexandre Belloni

rtc: gemini: Remove unnecessary platform_set_drvdata()

The driver core clears the driver data to NULL after device_release
or on probe failure
Signed-off-by: default avatarNizam Haider <nijamh@cdac.in>
Acked-by: default avatarHans Ulli Kroll <ulli.kroll@googlemail.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent 501385f2
...@@ -156,7 +156,6 @@ static int gemini_rtc_remove(struct platform_device *pdev) ...@@ -156,7 +156,6 @@ static int gemini_rtc_remove(struct platform_device *pdev)
struct gemini_rtc *rtc = platform_get_drvdata(pdev); struct gemini_rtc *rtc = platform_get_drvdata(pdev);
rtc_device_unregister(rtc->rtc_dev); rtc_device_unregister(rtc->rtc_dev);
platform_set_drvdata(pdev, NULL);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment