]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rtc: rtc-nuc900: remove unnecessary platform_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Wed, 19 Jun 2013 00:07:41 +0000 (10:07 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:27:18 +0000 (17:27 +1000)
commitd28e816aa83d08b6f0491648a1b6f7a11956dae5
treee2d974a1770ae7c5c4a2fe740fb67c36d033451d
parent0fd6c5526003a532a51f5cac90da7577ae1dc743
rtc: rtc-nuc900: 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>
Acked-by: Wan Zongshun <mcuos.com@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-nuc900.c