rtc: ds1343: use rtc_add_group
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 19 Oct 2019 20:49:36 +0000 (22:49 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 19 Oct 2019 20:56:01 +0000 (22:56 +0200)
commit580daaf43afc7024d10d23021093e9e76181e338
tree184ecf4a45efbf16474f955fcd6f8c0718c5ce7c
parentf308b682028a34874a376da649f99e7531dea15c
rtc: ds1343: use rtc_add_group

Use rtc_add_group to add the sysfs group in a race free manner.
This has the side effect of moving the files to their proper location.

Link: https://lore.kernel.org/r/20191019204941.6203-4-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ds1343.c