diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-11-13 00:10:32 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-13 04:09:27 +0100 |
commit | d7d954acb7eb204eeed10cd4494812e9f2e48bd8 (patch) | |
tree | 7ae047032f1259e886c28f4c55ca4205cbbfa905 /drivers/rtc | |
parent | drivers/rtc/rtc-sirfsoc.c: use devm_rtc_device_register (diff) | |
download | linux-d7d954acb7eb204eeed10cd4494812e9f2e48bd8.tar.xz linux-d7d954acb7eb204eeed10cd4494812e9f2e48bd8.zip |
drivers/rtc/rtc-cmos.c: remove redundant dev_set_drvdata
Driver core sets the driver data to NULL upon device_release or on probe
failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-cmos.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c index 24e733c98f8b..79680b1d4d74 100644 --- a/drivers/rtc/rtc-cmos.c +++ b/drivers/rtc/rtc-cmos.c @@ -789,7 +789,6 @@ static void __exit cmos_do_remove(struct device *dev) cmos->iomem = NULL; cmos->dev = NULL; - dev_set_drvdata(dev, NULL); } #ifdef CONFIG_PM |