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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Timur,

On Mon,  7 Jan 2008 12:56:43 -0600 Timur Tabi <timur@xxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
http://www.canb.auug.org.au/~sfr/

Attachment: pgpOmNzjKrRRL.pgp
Description: PGP signature

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux