Hi Dave, On Mon, 11 Feb 2008 13:32:43 -0700 Dave Jiang <[EMAIL PROTECTED]> wrote: > > +++ b/arch/powerpc/platforms/85xx/mpc85xx_ads.c > @@ -26,6 +26,8 @@ > #include <asm/mpic.h> > #include <mm/mmu_decl.h> > #include <asm/udbg.h> > +#include <asm/of_device.h> > +#include <asm/of_platform.h>
Like Jon said ...
> +static struct of_device_id mpc85xx_ids[] = {
make this __initdata
> +static int __init mpc85xx_publish_devices(void)
> +{
> + if (!machine_is(mpc85xx_ads))
> + return 0;
You don't need this if you make the change below.
> + of_platform_bus_probe(NULL, mpc85xx_ids, NULL);
> +
> + return 0;
> +}
> +device_initcall(mpc85xx_publish_devices);
machine_devce_initcall(mpc85xx_ads, mpc85xx_publish_devices);
> +++ b/arch/powerpc/platforms/85xx/mpc85xx_cds.c
> +static struct of_device_id mpc85xx_ids[] = {
__initdata
> +static int __init mpc85xx_publish_devices(void)
> +{
> + if (!machine_is(mpc85xx_cds))
> + return 0;
> +
> + of_platform_bus_probe(NULL, mpc85xx_ids, NULL);
> +
> + return 0;
> +}
> +device_initcall(mpc85xx_publish_devices);
Same as above.
--
Cheers,
Stephen Rothwell [EMAIL PROTECTED]
http://www.canb.auug.org.au/~sfr/
pgpvpia3QsNRu.pgp
Description: PGP signature
_______________________________________________ Linuxppc-dev mailing list [email protected] https://ozlabs.org/mailman/listinfo/linuxppc-dev
