Skip to contentSkip to conversation

arm: dts: imx8qxp: fix build warining

PATCH New Peng Fan 2 participants 3 messages Oct 25, 2018 – Oct 26, 2018

Subsystems (2)
lore
Share & tools
lore

Peng Fan

author
#0 lore raw

PATCH 1/1 arm: dts: imx8qxp: fix build warining

Fix below build warning.

arch/arm/dts/fsl-imx8qxp-mek.dtb: Warning (avoid_unnecessary_addr_size):
/regulators: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property

---
 arch/arm/dts/fsl-imx8qxp-mek.dts | 2 --
 1 file changed, 2 deletions(-)
arch/arm/dts/fsl-imx8qxp-mek.dts +0 -2
index 09ea3b4a3a..c14e1845a1 100644
@@ -18,8 +18,6 @@
 
 	regulators {
 		compatible = "simple-bus";
-		#address-cells = <1>;
-		#size-cells = <0>;
 
 		reg_usdhc2_vmmc: usdhc2-vmmc {
 			compatible = "regulator-fixed";
Signature · 1 line
2.14.1
reviewer
#1 lore raw

PATCH 1/1 arm: dts: imx8qxp: fix build warining

Hi Peng,

Quoted 17 lines · Peng Fan

Fix below build warning.

arch/arm/dts/fsl-imx8qxp-mek.dtb: Warning (avoid_unnecessary_addr_size):
/regulators: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property

---
 arch/arm/dts/fsl-imx8qxp-mek.dts | 2 --
 1 file changed, 2 deletions(-)
arch/arm/dts/fsl-imx8qxp-mek.dts +0 -0
index 09ea3b4a3a..c14e1845a1 100644

arch/arm/dts/fsl-imx8qxp-mek.dts line 22

Quoted 5 lines
arch/arm/dts/fsl-imx8qxp-mek.dts +0 -2
@@ -18,8 +18,6 @@
 
        regulators {
                compatible = "simple-bus";
-               #address-cells = <1>;
-               #size-cells = <0>;

The correct fix would be to move the regulators outside simple-bus.

I will send a follow up patch.

author
#2 lore raw

PATCH 1/1 arm: dts: imx8qxp: fix build warining

Quoted 31 lines

-----Original Message-----
From: Fabio Estevam [mailto:festevam at gmail.com]
Sent: 2018年10月26日 8:41
To: Peng Fan <[email protected]>
Cc: Stefano Babic <[email protected]>; U-Boot-Denx <[email protected]>
Subject: Re: [U-Boot] [PATCH] arm: dts: imx8qxp: fix build warining

Hi Peng,

Quoted 7 lines · Peng Fan

Fix below build warning.

arch/arm/dts/fsl-imx8qxp-mek.dtb: Warning (avoid_unnecessary_addr_size):
/regulators: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property

Review

Quoted 6 lines
---
 arch/arm/dts/fsl-imx8qxp-mek.dts | 2 --
 1 file changed, 2 deletions(-)
(quoted diff) +0 -0

b/arch/arm/dts/fsl-imx8qxp-mek.dts

Quoted 5 lines

index 09ea3b4a3a..c14e1845a1 100644

arch/arm/dts/fsl-imx8qxp-mek.dts +0 -0
@@ -18,8 +18,6 @@
 
Quoted 8 lines

arch/arm/dts/fsl-imx8qxp-mek.dts line 22

Quoted 4 lines
arch/arm/dts/fsl-imx8qxp-mek.dts +0 -2
        regulators {
                compatible = "simple-bus";
-               #address-cells = <1>;
-               #size-cells = <0>;

The correct fix would be to move the regulators outside simple-bus.

I will send a follow up patch.

Thanks, please go ahead submit a patch fix.

Thanks,
Peng.