Commit 6ab59018 authored by Paul Cercueil's avatar Paul Cercueil Committed by Alexandre Belloni

MIPS: qi_lb60: Probe RTC driver from DT and use it as power controller

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: default avatarPaul Cercueil <paul@crapouillou.net>
Acked-by: default avatarMaarten ter Huurne <maarten@treewalker.org>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent 262d62cb
...@@ -13,3 +13,7 @@ chosen { ...@@ -13,3 +13,7 @@ chosen {
&ext { &ext {
clock-frequency = <12000000>; clock-frequency = <12000000>;
}; };
&rtc_dev {
system-power-controller;
};
...@@ -438,7 +438,6 @@ static struct platform_device *jz_platform_devices[] __initdata = { ...@@ -438,7 +438,6 @@ static struct platform_device *jz_platform_devices[] __initdata = {
&jz4740_pcm_device, &jz4740_pcm_device,
&jz4740_i2s_device, &jz4740_i2s_device,
&jz4740_codec_device, &jz4740_codec_device,
&jz4740_rtc_device,
&jz4740_adc_device, &jz4740_adc_device,
&jz4740_pwm_device, &jz4740_pwm_device,
&jz4740_dma_device, &jz4740_dma_device,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment