On Oct 18, 2007, at 7:43 PM, Stephen Rothwell wrote:

> On Thu, 18 Oct 2007 23:04:02 +0800 Li Yang <[EMAIL PROTECTED]>  
> 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
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Reply via email to