[PATCH v6 4/9] add platform support for MPC837x MDS board
Kumar Gala
galak at kernel.crashing.org
Fri Oct 19 23:10:00 EST 2007
On Oct 18, 2007, at 7:43 PM, Stephen Rothwell wrote:
> 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.
what's the rule of thumb to know when to include <asm/prom.h> does
everything starting with of_flat_* come from there?
- k
More information about the Linuxppc-dev
mailing list