rtc: jz4740: make the driver buildable as a module again
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Tue, 24 Jan 2017 23:44:16 +0000 (00:44 +0100)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 26 Jan 2017 22:03:21 +0000 (23:03 +0100)
commit586655d278ba08af7b198b93217746f9a506ee8a
treeb5eb49de3fdf08b0b53dc87f59c5a87f01d1e077
parent7ce7d89f48834cefece7804d38fc5d85382edf77
rtc: jz4740: make the driver buildable as a module again

By using kernel_halt() instead of machine_halt(), we can make the driver
build as a module.
However, jz4740 platforms not loading this module will not be able to power
off.

Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Revert "rtc: jz4740: make the driver builtin only"

This reverts commit b9168c539c0b2de756aaffd380384dbde8adbe07.
drivers/rtc/Kconfig
drivers/rtc/rtc-jz4740.c