OSDN Git Service

rtc: rx8010: switch to using the preferred RTC API
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 14 Sep 2020 15:45:58 +0000 (17:45 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 15 Sep 2020 08:50:38 +0000 (10:50 +0200)
commit0ce627785afa730d8f6568eb8738d1700cbc4569
tree65380a45e6c91e145cefd3e41403b7660aae3207
parent666f21413b881e159efaf862f119d4d058fa2c4a
rtc: rx8010: switch to using the preferred RTC API

Use devm_rtc_allocate_device() + rtc_register_device() instead of the
deprecated devm_rtc_device_register().

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20200914154601.32245-12-brgl@bgdev.pl
drivers/rtc/rtc-rx8010.c