From: Sachin Kamat Date: Tue, 12 Nov 2013 23:10:32 +0000 (-0800) Subject: drivers/rtc/rtc-cmos.c: remove redundant dev_set_drvdata X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d7d954acb7eb204eeed10cd4494812e9f2e48bd8;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Cc: Jingoo Han Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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