]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: sprd: Change to use devm_rtc_allocate_device()
authorBaolin Wang <baolin.wang@linaro.org>
Thu, 26 Apr 2018 02:58:44 +0000 (10:58 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 3 May 2018 20:11:49 +0000 (22:11 +0200)
commit3630788cce930c4b8be7742d9e5df22b95a99357
treeae4bdde45bd23efd36fac5b9c2d0622943034bb3
parent594c9f7ab06f43770aa1141fb20e906af69e347c
rtc: sprd: Change to use devm_rtc_allocate_device()

This is a preparation patch, changing to use devm_rtc_allocate_device()
that can allow driver to set 'range_max' and 'range_min' for the RTC
device.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-sc27xx.c