Skip to contentSkip to conversation

adder875: Fix flash bus-width and remove duplicate __initdata.

PATCH Applied Scott Wood 2 participants 4 messages Jan 22, 2008

Subsystems (3)
lore
Share & tools
lore

Scott Wood

author
#0 lore raw

PATCH 1/1 adder875: Fix flash bus-width and remove duplicate __initdata.

---
 arch/powerpc/boot/dts/adder875-redboot.dts |    2 +-
 arch/powerpc/boot/dts/adder875-uboot.dts   |    2 +-
 arch/powerpc/platforms/8xx/adder875.c      |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
arch/powerpc/boot/dts/adder875-redboot.dts +1 -1
index 8f7a79f..930bfb3 100644
@@ -62,7 +62,7 @@
 		flash@0,0 {
 			compatible = "cfi-flash";
 			reg = <0 0 0x800000>;
-			bank-width = <4>;
+			bank-width = <2>;
 			device-width = <2>;
 		};
 	};
arch/powerpc/boot/dts/adder875-uboot.dts +1 -1
index 60d4ad5..0197242 100644
@@ -61,7 +61,7 @@
 		flash@0,0 {
 			compatible = "cfi-flash";
 			reg = <0 0 0x800000>;
-			bank-width = <4>;
+			bank-width = <2>;
 			device-width = <2>;
 		};
 	};
arch/powerpc/platforms/8xx/adder875.c +1 -1
index af040fd..c6bc078 100644
@@ -92,7 +92,7 @@ static int __init adder875_probe(void)
 	return of_flat_dt_is_compatible(root, "analogue-and-micro,adder875");
 }
 
-static __initdata struct of_device_id __initdata of_bus_ids[] = {
+static __initdata struct of_device_id of_bus_ids[] = {
 	{ .compatible = "simple-bus", },
 	{},
 };
Signature · 1 line
1.5.3.8
#1 lore raw
Quoted 12 lines · Scott Wood

---

arch/powerpc/boot/dts/adder875-redboot.dts |    2 +-
arch/powerpc/boot/dts/adder875-uboot.dts   |    2 +-
arch/powerpc/platforms/8xx/adder875.c      |    2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
arch/powerpc/boot/dts/adder875-redboot.dts +0 -0
index 8f7a79f..930bfb3 100644

arch/powerpc/boot/dts/adder875-redboot.dts line 68

Quoted 8 lines
arch/powerpc/boot/dts/adder875-redboot.dts +1 -1
@@ -62,7 +62,7 @@
 		flash@0,0 {
 			compatible = "cfi-flash";
 			reg = <0 0 0x800000>;
-			bank-width = <4>;
+			bank-width = <2>;
 			device-width = <2>;
 		};
 	};

I'm assuming the bank-width was just wrong before?

- k

author
#2 lore raw
Quoted 9 lines · Kumar Gala
Quoted 7 lines · Scott Wood

---

arch/powerpc/boot/dts/adder875-redboot.dts |    2 +-
arch/powerpc/boot/dts/adder875-uboot.dts   |    2 +-
arch/powerpc/platforms/8xx/adder875.c      |    2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
Quoted 15 lines

arch/powerpc/boot/dts/adder875-redboot.dts line 68

Quoted 13 lines
arch/powerpc/boot/dts/adder875-redboot.dts +1 -1
index 8f7a79f..930bfb3 100644
@@ -62,7 +62,7 @@
 		flash@0,0 {
 			compatible = "cfi-flash";
 			reg = <0 0 0x800000>;
-			bank-width = <4>;
+			bank-width = <2>;
 			device-width = <2>;
 		};
 	};

I'm assuming the bank-width was just wrong before?

Yes, I got a bug report (off-list) about it today. I thought I had tested it a while back; maybe the dts got reverted to an older version somewhere along the way.

-Scott