I see your point, I agree the two layers of glue is bad.&nbsp; But this means<br>the double code is spread across many drivers instead of being in one<br>place (fsl_soc.c).<br><br><div><span class="gmail_quote">On 7/7/07, <b class="gmail_sendername">
Grant Likely</b> &lt;<a href="mailto:grant.likely@secretlab.ca">grant.likely@secretlab.ca</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 7/7/07, John Rigby &lt;<a href="mailto:jcrigby@gmail.com">jcrigby@gmail.com</a>&gt; wrote:<br>&gt; &gt; This same comment probably goes for the other arch_initcall functions<br>&gt; &gt; in fsl_soc.c which do exactly the same thing for other devices.
<br>&gt;<br>&gt; This depends,&nbsp;&nbsp;some devices in fsl_soc.c may exist on non-powerpc SoCs<br>&gt; that do not have OF.&nbsp;&nbsp;The USB core in 8349 for example also is in the<br>&gt; arm based mx27 and mx31.&nbsp;&nbsp;These devices should remain platform devices
<br>&gt; and the glue in fls_soc.c will continure to be needed.<br><br>I disagree; the current method is &quot;glue for the glue&quot;.&nbsp;&nbsp;There is no<br>reason why the driver cannot have two bindings; one for<br>platform_device and one for of_platform_device.&nbsp;&nbsp;It&#39;s about the same
<br>amount of code, but uses less indirection for the device tree case.<br><br>Cheers,<br>g.<br><br><br>--<br>Grant Likely, B.Sc., P.Eng.<br>Secret Lab Technologies Ltd.<br><a href="mailto:grant.likely@secretlab.ca">grant.likely@secretlab.ca
</a><br>(403) 399-0195<br></blockquote></div><br>