[PATCH] [5/5] [v2] pasemi: GPIO MDIO of_platform driver

Paul Mackerras paulus at samba.org
Tue May 1 14:35:58 EST 2007


I just noticed this in arch/powerpc/platforms/pasemi/setup.c:

> --- powerpc.orig/arch/powerpc/platforms/pasemi/setup.c
> +++ powerpc/arch/powerpc/platforms/pasemi/setup.c
> @@ -209,6 +209,20 @@ static void __init pas_init_early(void)
>  	iommu_init_early_pasemi();
>  }
>  
> +static struct of_device_id pasemi_bus_ids[] = {
> +	{ .type = "sdc", },
> +	{},
> +};
> +
> +static int __init pasemi_publish_devices(void)
> +{
> +	/* Publish OF platform devices for southbridge IOs */
> +	of_platform_bus_probe(NULL, pasemi_bus_ids, NULL);
> +
> +	return 0;
> +}
> +device_initcall(pasemi_publish_devices);

Oof.  Please make sure you only call of_platform_bus_probe if you are
actually on a pasemi platform... :)

Paul.



More information about the Linuxppc-dev mailing list