OSDN Git Service

rtc: sirfsoc: convert to devm_rtc_allocate_device
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 5 Mar 2020 16:04:50 +0000 (17:04 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 16 Mar 2020 10:12:08 +0000 (11:12 +0100)
commit2911ee9e60d9013dae0abc86719e884b5dfb4fda
treed4b45a7952896e86316115d38ed8c977dadaeba1
parentb427ca8c663ea32c67702b2ff5fb19aabd57fa7f
rtc: sirfsoc: convert to devm_rtc_allocate_device

This allows further improvement of the driver. Also remove the unnecessary
error string as the core will already display error messages.

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