[PATCH 1/2] powerpc: publish 85xx soc dts entries as of_device
Stephen Rothwell
sfr at canb.auug.org.au
Tue Feb 12 10:36:49 EST 2008
Hi Dave,
On Mon, 11 Feb 2008 13:32:43 -0700 Dave Jiang <djiang at mvista.com> 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 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/20080212/9d8964ba/attachment.pgp>
More information about the Linuxppc-dev
mailing list