Subject: [PATCH][PPC32] ibmstb4 ocp fix

From: Andre' Draszik <[email-masked]>
Date: Mon, 07 Feb 2005 05:38:05 +0100

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

Signed-off-by: Andre' Draszik <[email-masked]>

diff -urN linuxppc-2.5.orig/arch/ppc/platforms/4xx/ibmstb4.c linuxppc-2.5/arch/ppc/platforms/4xx/ibmstb4.c
--- linuxppc-2.5.orig/arch/ppc/platforms/4xx/ibmstb4.c	2005-02-06 00:16:33.000000000 +0100
+++ linuxppc-2.5/arch/ppc/platforms/4xx/ibmstb4.c	2005-02-05 21:20:58.000000000 +0100
@@ -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,