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

Stephen Rothwell sfr at canb.auug.org.au
Tue Jan 8 01:56:54 CET 2008


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.

-- 
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://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20080108/1c4500dd/attachment.sig 


More information about the Alsa-devel mailing list