Skip to contentSkip to conversation

ibmstb4 ocp fix

PATCH New Andre' Draszik 1 participant 1 message Feb 7, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ibmstb4 ocp fix

this one fixes the OCP device definition for STB04. Please consider applying.

arch/ppc/platforms/4xx/ibmstb4.c +3 -1
diff -urN linuxppc-2.5.orig/arch/ppc/platforms/4xx/ibmstb4.c linuxppc-2.5/arch/ppc/platforms/4xx/ibmstb4.c
@@ -22,7 +22,7 @@
 };
 OCP_SYSFS_IIC_DATA()
 
-struct ocp_def core_ocp[] __initdata = {
+struct ocp_def core_ocp[] = {
 	{ .vendor	= OCP_VENDOR_IBM,
 	  .function	= OCP_FUNC_16550,
 	  .index	= 0,
@@ -46,6 +46,7 @@
 	},
 	{ .vendor	= OCP_VENDOR_IBM,
 	  .function	= OCP_FUNC_IIC,
+	  .index	= 0,
 	  .paddr	= IIC0_BASE,
 	  .irq		= IIC0_IRQ,
 	  .pm		= IBM_CPM_IIC0,
@@ -54,6 +55,7 @@
 	},
 	{ .vendor	= OCP_VENDOR_IBM,
 	  .function	= OCP_FUNC_IIC,
+	  .index	= 1,
 	  .paddr	= IIC1_BASE,
 	  .irq		= IIC1_IRQ,
 	  .pm		= IBM_CPM_IIC1,