Skip to content

Commit

Permalink
drivers/rtc/rtc-cmos.c: remove redundant dev_set_drvdata
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and Linus Torvalds committed Nov 13, 2013
1 parent 3d09162 commit d7d954a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/rtc/rtc-cmos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d7d954a

Please sign in to comment.