diff options
Diffstat (limited to 'arch/powerpc/platforms/embedded6xx/storcenter.c')
| -rw-r--r-- | arch/powerpc/platforms/embedded6xx/storcenter.c | 28 | 
1 files changed, 4 insertions, 24 deletions
diff --git a/arch/powerpc/platforms/embedded6xx/storcenter.c b/arch/powerpc/platforms/embedded6xx/storcenter.c index 613070e9ddb..c458b60d14c 100644 --- a/arch/powerpc/platforms/embedded6xx/storcenter.c +++ b/arch/powerpc/platforms/embedded6xx/storcenter.c @@ -16,7 +16,6 @@  #include <linux/initrd.h>  #include <linux/of_platform.h> -#include <asm/system.h>  #include <asm/time.h>  #include <asm/prom.h>  #include <asm/mpic.h> @@ -77,41 +76,22 @@ static void __init storcenter_setup_arch(void)  }  /* - * Interrupt setup and service.  Interrrupts on the turbostation come + * Interrupt setup and service.  Interrupts on the turbostation come   * from the four PCI slots plus onboard 8241 devices: I2C, DUART.   */  static void __init storcenter_init_IRQ(void)  {  	struct mpic *mpic; -	struct device_node *dnp; -	const void *prop; -	int size; -	phys_addr_t paddr; - -	dnp = of_find_node_by_type(NULL, "open-pic"); -	if (dnp == NULL) -		return; - -	prop = of_get_property(dnp, "reg", &size); -	if (prop == NULL) { -		of_node_put(dnp); -		return; -	} - -	paddr = (phys_addr_t)of_translate_address(dnp, prop); -	mpic = mpic_alloc(dnp, paddr, MPIC_PRIMARY | MPIC_WANTS_RESET, -			16, 32, " OpenPIC  "); - -	of_node_put(dnp); +	mpic = mpic_alloc(NULL, 0, 0, 16, 0, " OpenPIC  ");  	BUG_ON(mpic == NULL);  	/*  	 * 16 Serial Interrupts followed by 16 Internal Interrupts.  	 * I2C is the second internal, so it is at 17, 0x11020.  	 */ -	mpic_assign_isu(mpic, 0, paddr + 0x10200); -	mpic_assign_isu(mpic, 1, paddr + 0x11000); +	mpic_assign_isu(mpic, 0, mpic->paddr + 0x10200); +	mpic_assign_isu(mpic, 1, mpic->paddr + 0x11000);  	mpic_init(mpic);  }  | 
