From: Jingoo Han Date: Thu, 23 May 2013 00:37:40 +0000 (+1000) Subject: rtc: rtc-ab3100: remove unnecessary platform_set_drvdata() X-Git-Tag: next-20130527~1^2~128 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5f6db97b4d6e55967a9f62e9ea74e7639722c11e;p=karo-tx-linux.git rtc: rtc-ab3100: remove unnecessary platform_set_drvdata() The driver core clears the driver data to NULL after device_release or on probe failure, since commit 0998d063100 ("device-core: Ensure drvdata = NULL when no driver is bound"). Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han Cc: Lars-Peter Clausen Signed-off-by: Andrew Morton --- diff --git a/drivers/rtc/rtc-ab3100.c b/drivers/rtc/rtc-ab3100.c index 47a4f2c4d30e..572208d67688 100644 --- a/drivers/rtc/rtc-ab3100.c +++ b/drivers/rtc/rtc-ab3100.c @@ -242,7 +242,6 @@ static int __init ab3100_rtc_probe(struct platform_device *pdev) static int __exit ab3100_rtc_remove(struct platform_device *pdev) { - platform_set_drvdata(pdev, NULL); return 0; }