[PATCH 2/3] 82xx: Parse SMC serial device node in DTS
Mark Zhan
rongkai.zhan at windriver.com
Tue Jul 17 14:49:02 EST 2007
Hello Arnd,
I think, the function of_find_compatible_node(), which is called in the
for loop, has already done that. So definitely, no need to call
of_device_is_compatible() any more.
Thanks
Mark Zhan
On Tue, 2007-07-17 at 03:02 +0200, Arnd Bergmann wrote:
> On Monday 16 July 2007, Mark Zhan wrote:
> > - cpm_uart_data.uart_clk = ppc_proc_freq;
> > + if (strstr(model, "SMC")) {
> > + cpm_uart_dev = platform_device_register_simple("fsl-cpm-smc:uart",
> > + i, &r[0], 3);
> > + } else if (strstr(model, "SCC")) {
> > + cpm_uart_dev = platform_device_register_simple("fsl-cpm-scc:uart",
> > + i, &r[0], 3);
> > + }
> >
>
> You should probably use of_device_is_compatible() to check
> if a given device can be used by a particular driver.
>
> Arnd <><
More information about the Linuxppc-dev
mailing list