]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rtc: rtc-da9055: remove unnecessary platform_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Thu, 9 May 2013 23:57:38 +0000 (09:57 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 21 May 2013 04:17:53 +0000 (14:17 +1000)
commit02ba1516bf5a8b4907943e157ccb68b5fd6d73b3
tree68392745fa7416ca25c4e76537fb3393c7a6bed4
parente82eda1a552e9e8b4d3486bd8d8ad5d590acaeea
rtc: rtc-da9055: 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-da9055.c