OSDN Git Service

rtc: abx80x: use rtc_add_group
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 6 Mar 2019 09:51:33 +0000 (10:51 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 18 Mar 2019 02:36:01 +0000 (03:36 +0100)
commit559e883e0f776855072d70001a4c68a0d07a68f4
tree8387445b5ba9ab8659c52bcada84552aa4647df2
parent2fcdf5fd7c1b66f283b16639682f0b5dd3474b0b
rtc: abx80x: 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.

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