[PATCH v2] [POWERPC] Update MPC8610 HPCD to support audio drivers

Liam Girdwood lg at opensource.wolfsonmicro.com
Tue Jan 8 23:39:14 EST 2008


On Tue, 2008-01-08 at 11:56 +1100, Stephen Rothwell wrote:
> Hi Timur,
> 
> On Mon,  7 Jan 2008 12:56:43 -0600 Timur Tabi <timur at freescale.com> wrote:
> >
> > +++ b/arch/powerpc/platforms/86xx/mpc8610_hpcd.c
> > @@ -34,9 +34,27 @@
> >  
> >  #include <asm/mpic.h>
> >  
> > +#include <linux/of_platform.h>
> >  #include <sysdev/fsl_pci.h>
> >  #include <sysdev/fsl_soc.h>
> >  
> > +static struct of_device_id mpc8610_ids[] = {
> 
> __initdata
> 
> > +	{ .compatible = "fsl,mpc8610", },
> > +	{}
> > +};
> > +
> > +static int __init mpc8610_declare_of_platform_devices(void)
> > +{
> > +	if (!machine_is(mpc86xx_hpcd))
> > +		return 0;
> > +
> > +	/* Without this call, the SSI device driver won't get probed. */
> > +	of_platform_bus_probe(NULL, mpc8610_ids, NULL);
> > +
> > +	return 0;
> > +}
> > +device_initcall(mpc8610_declare_of_platform_devices);
> 
> We have machine_device_initcall for this now.
> 

Now changed in ASoC dev branch.

Liam




More information about the Linuxppc-dev mailing list