rtc: davinci: convert to devm_rtc_allocate_device
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 5 Mar 2020 21:50:19 +0000 (22:50 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 16 Mar 2020 10:12:09 +0000 (11:12 +0100)
commitb1c67e0b07c5613bb7e2ad20eee9a6e5d1504fd1
tree7e03cf8c8328a050060ee1237a33c159ed3f2f37
parent09b875a426c97bd6b2e6a56b8ca37680965524fb
rtc: davinci: 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/20200305215022.32533-1-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-davinci.c