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>
This commit is contained in:
Sachin Kamat 2013-11-12 15:10:32 -08:00 committed by Linus Torvalds
parent 3d09162e99
commit d7d954acb7
1 changed files with 0 additions and 1 deletions

View File

@ -789,7 +789,6 @@ static void __exit cmos_do_remove(struct device *dev)
cmos->iomem = NULL; cmos->iomem = NULL;
cmos->dev = NULL; cmos->dev = NULL;
dev_set_drvdata(dev, NULL);
} }
#ifdef CONFIG_PM #ifdef CONFIG_PM