ARM: shmobile: ape6evm-reference: Initialise CMT1 device using DT
authorSimon Horman <horms+renesas@verge.net.au>
Mon, 7 Jul 2014 07:54:38 +0000 (09:54 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 5 Dec 2014 08:33:26 +0000 (17:33 +0900)
Initialise CMT1 device using DT when booting ape6evm
using DT-reference.

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
(cherry picked from commit dfb846c95e3a7bb14f3aa61473aa4be0a8fe02ab)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts
arch/arm/mach-shmobile/setup-r8a73a4.c

index 2bcf691..84e05f7 100644 (file)
        voltage-tolerance = <1>; /* 1% */
 };
 
+&cmt1 {
+       status = "okay";
+};
+
 &pfc {
        scifa0_pins: serial0 {
                renesas,groups = "scifa0_data";
index 591e805..feda3f8 100644 (file)
@@ -189,7 +189,6 @@ static struct resource cmt1_resources[] = {
 
 void __init r8a73a4_add_dt_devices(void)
 {
-       r8a73a4_register_cmt(1);
 }
 
 /* DMA */
@@ -282,7 +281,7 @@ static struct resource dma_resources[] = {
 
 void __init r8a73a4_add_standard_devices(void)
 {
-       r8a73a4_add_dt_devices();
+       r8a73a4_register_cmt(1);
        r8a73a4_register_scif(0);
        r8a73a4_register_scif(1);
        r8a73a4_register_scif(2);