]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
rtc: rtc-puv3: remove unnecessary platform_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Thu, 9 May 2013 23:57:46 +0000 (09:57 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 21 May 2013 04:17:58 +0000 (14:17 +1000)
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 <jg1.han@samsung.com>
Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-puv3.c

index 72f437170d2ebabae7c2a4d2659854b9c25bb5d8..402732cfb32a5574f6fda08f5637ba04a6d1fb0d 100644 (file)
@@ -224,7 +224,6 @@ static int puv3_rtc_remove(struct platform_device *dev)
 {
        struct rtc_device *rtc = platform_get_drvdata(dev);
 
-       platform_set_drvdata(dev, NULL);
        rtc_device_unregister(rtc);
 
        puv3_rtc_setpie(&dev->dev, 0);