]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rtc: rtc-twl: remove unnecessary platform_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Thu, 9 May 2013 23:57:45 +0000 (09:57 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 21 May 2013 04:17:57 +0000 (14:17 +1000)
commit67b0aa4e57b00b554af4f9cf0181cfc2751040d5
treea26254c30b7bab16a46f7dd8b12d82d1ac8a939a
parent03ed7454386a07772ba9d482ed99c645bf08c723
rtc: rtc-twl: 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 <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-twl.c