]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
MIPS: qi_lb60: Probe RTC driver from DT and use it as power controller
authorPaul Cercueil <paul@crapouillou.net>
Mon, 31 Oct 2016 20:39:50 +0000 (21:39 +0100)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 4 Nov 2016 23:02:01 +0000 (00:02 +0100)
Since we already have a devicetree node for the jz4740-rtc driver, we
don't have to probe it from platform code.

Besides, using the jz4740-rtc driver as the power controller for the
qi_lb60 platform allows us to remove the jz4740 platform power-off code,
since this is the only jz4740-based board upstream.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Acked-by: Maarten ter Huurne <maarten@treewalker.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
arch/mips/boot/dts/ingenic/qi_lb60.dts
arch/mips/jz4740/board-qi_lb60.c

index 2414d63ae81898d35766c184862ad2bd6e27f41b..be1a7d3a3e1b5aa8819f702d6507c44116a1e1c7 100644 (file)
@@ -13,3 +13,7 @@
 &ext {
        clock-frequency = <12000000>;
 };
+
+&rtc_dev {
+       system-power-controller;
+};
index 258fd03c9ef5aa98145cb69b699f39f5dd92e81a..a5bd94b952635fb9ebb9b23e115625d4db8c6da1 100644 (file)
@@ -438,7 +438,6 @@ static struct platform_device *jz_platform_devices[] __initdata = {
        &jz4740_pcm_device,
        &jz4740_i2s_device,
        &jz4740_codec_device,
-       &jz4740_rtc_device,
        &jz4740_adc_device,
        &jz4740_pwm_device,
        &jz4740_dma_device,