powerpc/p5040: fix dtb build warning of p5040ds.dtb
authorShaohui Xie <Shaohui.Xie@freescale.com>
Wed, 12 Sep 2012 10:36:03 +0000 (18:36 +0800)
committerKumar Gala <galak@kernel.crashing.org>
Wed, 12 Sep 2012 19:57:11 +0000 (14:57 -0500)
Device node adt7461 was wrongly added in p5040ds.dts, it should be added
into i2c instead of localbus, when build p5040ds.dtb, a warning will dump:

Warning (reg_format): "reg" property in
/localbus@ffe124000/nand@2,0/adt7461@4c has invalid length (4 bytes)
(#address-cells == 1, #size-cells == 1)

This was introduced by:

commit ea6b1ba692bcb5f6e39f409a78cf8b04fdf23baa
Author: Jia Hongtao <B38951@freescale.com>
Date:   Tue Aug 28 10:00:55 2012 +0800

    powerpc: add adt7461 thermal monitor support to applicable boards

    Add thermal monitor support to following boards:
    P1022DS, MPC8536DS, P2041RDB, P3041DS, P4080DS, P5020DS, P5040DS

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/boot/dts/p5040ds.dts

index 8165c93d66b5c7183ce7fe76c943feca55f0d14d..860b5ccf76c0bb0fdb38f96612456b0da1fb96c2 100644 (file)
                                reg = <0x68>;
                                interrupts = <0x1 0x1 0 0>;
                        };
+                       adt7461@4c {
+                               compatible = "adi,adt7461";
+                               reg = <0x4c>;
+                       };
                };
        };
 
                                label = "NAND Writable User area";
                                reg = <0x1f000000 0x01000000>;
                        };
-                       adt7461@4c {
-                               compatible = "adi,adt7461";
-                               reg = <0x4c>;
-                       };
                };
 
                board-control@3,0 {