Skip to content

Commit

Permalink
rtc: gemini: Remove unnecessary platform_set_drvdata()
Browse files Browse the repository at this point in the history
The driver core clears the driver data to NULL after device_release
or on probe failure

Signed-off-by: Nizam Haider <[email protected]>
Acked-by: Hans Ulli Kroll <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
  • Loading branch information
nizamhaider786 authored and alexandrebelloni committed Jan 11, 2016
1 parent 501385f commit 3fc2c14
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/rtc/rtc-gemini.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ static int gemini_rtc_remove(struct platform_device *pdev)
struct gemini_rtc *rtc = platform_get_drvdata(pdev);

rtc_device_unregister(rtc->rtc_dev);
platform_set_drvdata(pdev, NULL);

return 0;
}
Expand Down

0 comments on commit 3fc2c14

Please sign in to comment.