[PATCH v6 4/9] add platform support for MPC837x MDS board

Stephen Rothwell sfr at canb.auug.org.au
Fri Oct 19 10:43:18 EST 2007


On Thu, 18 Oct 2007 23:04:02 +0800 Li Yang <leoli at freescale.com> wrote:
>
> +++ b/arch/powerpc/platforms/83xx/mpc837x_mds.c
> +static void __init mpc837x_mds_setup_arch(void)
> +{
> +#ifdef CONFIG_PCI
> +	struct device_node *np;
> +#endif
> +
> +	if (ppc_md.progress)
> +		ppc_md.progress("mpc837x_mds_setup_arch()", 0);
> +
> +#ifdef CONFIG_PCI
> +	for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;)

	for_each_node_by_type(np, "pci")

> +static int __init mpc837x_mds_probe(void)
> +{
> +        unsigned long root = of_get_flat_dt_root();
> +
> +        return of_flat_dt_is_compatible(root, "fsl,mpc837xmds");

To call these two routines, you should include <asm/prom.h> directly.

-- 
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/20071019/fb66247a/attachment.pgp>


More information about the Linuxppc-dev mailing list