rtc: ds1685: use rtc_add_group
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 19 Sep 2018 17:52:11 +0000 (19:52 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 28 Sep 2018 12:21:01 +0000 (14:21 +0200)
commitcfb74916e2ecf018e3189959edd2a1356b2fd89e
treef6a5b34607f6c5ec6ff07318af012037cedabbd0
parent482419e120da6da187be996c6871ed1e8bf02c51
rtc: ds1685: use rtc_add_group

Use rtc_add_group to add the sysfs group in a race free manner.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ds1685.c