]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rtc: rtc-vr41xx: remove unnecessary platform_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Thu, 27 Jun 2013 23:53:17 +0000 (09:53 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:38:36 +0000 (16:38 +1000)
commit63b85c0ea6365836d6603ab2c3bc710ec802e4bd
tree7a57e7632bf2154a12ca0c9e9613887ed4b721e4
parent52052c5dae08d6e0e4a6bb7f1b46f904c67d63a3
rtc: rtc-vr41xx: 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-vr41xx.c