<div dir="ltr"><div><div>&gt;&gt;I am looking into platform driver and devices and 
understood HOW platform driver&#39;s probe is called from kernel doc and 
&gt;&gt;following forum.<br>&gt;&gt;<a href="http://comments.gmane.org/gmane.linux.kernel.kernelnewbies/37050" target="_blank">&gt;&gt;http://comments.gmane.org/gmane.linux.kernel.kernelnewbies/37050</a><br><br></div>I would ask <b>what</b> is platform device driver ? and what is the <b>difference</b> between a platform device driver and a normal device driver ? <br><br>The answer here explains it extremely well :<br><a href="http://stackoverflow.com/questions/15610570/what-is-the-difference-between-platform-driver-and-normal-device-driver">http://stackoverflow.com/questions/15610570/what-is-the-difference-between-platform-driver-and-normal-device-driver</a><br><br>&gt;&gt;For further information I went through code in platform_driver_register() and got lost. I looked web but could not find <br>&gt;&gt;substantiation information.<br><br></div>This will help: <a href="http://code.woboq.org/linux/linux/drivers/base/platform.c.html#platform_driver_probe">http://code.woboq.org/linux/linux/drivers/base/platform.c.html#platform_driver_probe</a><br><div><br>&gt;&gt;I am still not able to locate from WHERE this probe function is called and WHO calls it?<br>&gt;&gt;Can someone please point to source code or some other document related to this?<br><br></div><div>Review this article carefully: <br><a href="https://coherentmusings.wordpress.com/2013/12/13/how-to-write-a-platform-devicedriver-adc-driver-using-wm97xx-codec/">https://coherentmusings.wordpress.com/2013/12/13/how-to-write-a-platform-devicedriver-adc-driver-using-wm97xx-codec/</a><br></div><div><br></div><div>Have fun :)<br><br></div><div>Aruna<br></div><div><br><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 21, 2014 at 8:16 AM, Sunil Shahu <span dir="ltr">&lt;<a href="mailto:sunil.rockon@yahoo.in" target="_blank">sunil.rockon@yahoo.in</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif;font-size:16px"><div dir="ltr">Hello,</div><div dir="ltr"><br></div><div dir="ltr">I am looking into platform driver and devices and understood HOW platform driver&#39;s probe is called from kernel doc and following forum.</div><div dir="ltr"><a href="http://comments.gmane.org/gmane.linux.kernel.kernelnewbies/37050" target="_blank">http://comments.gmane.org/gmane.linux.kernel.kernelnewbies/37050</a><br></div><div dir="ltr"><br></div><div dir="ltr">For further information I went through code in platform_driver_register() and got lost. I looked web but could not find substantiation information.<br></div><div dir="ltr"><br></div><div dir="ltr">I am still not able to locate from WHERE this probe function is called and WHO calls it?</div><div dir="ltr">Can someone please point to source code or some other document related to this?</div><div dir="ltr"><br></div><div dir="ltr">Thanks,</div><div dir="ltr">Sunil.</div><div dir="ltr"><br></div></div></div><br>_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br></blockquote></div><br></div>