[PATCH 03/11] [POWERPC] Add common mpc52xx_setup_pci() routine

Stephen Rothwell sfr at canb.auug.org.au
Wed Oct 24 17:16:19 EST 2007


On Wed, 24 Oct 2007 01:13:21 +0200 Marian Balakowicz <m8 at semihalf.com> wrote:
>
> +++ b/arch/powerpc/platforms/52xx/lite5200.c
> @@ -155,11 +155,7 @@ static void __init lite5200_setup_arch(void)
>  #endif
>  
>  #ifdef CONFIG_PCI
> -	np = of_find_node_by_type(NULL, "pci");
> -	if (np) {
> -		mpc52xx_add_bridge(np);
> -		of_node_put(np);
> -	}
> +	mpc52xx_setup_pci();
>  #endif

Normally we would have no "#ifdef CONFIG_PCI" here but instead define a

static inline void mpc52xx_setup_pci(void) { }

in the header file for the non PCI case.

-- 
Cheers,
Stephen Rothwell                    sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20071024/bacf0ab4/attachment.pgp>


More information about the Linuxppc-dev mailing list