rtc: ab8500: use rtc_add_group
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 24 Sep 2018 14:49:00 +0000 (16:49 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 28 Sep 2018 12:36:44 +0000 (14:36 +0200)
commitb56295dd337a35402663b230ac62260cbe7ee5ac
treec83e6a6d15b3734e430f3d447874be3cc89e2a17
parent1654a2b06b936c5e123978e6d9523b022a2a5aa1
rtc: ab8500: 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>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ab8500.c