Dear all,<br> I'm new to PPC Linux development. Recently I'm
learning how to write a Linux device driver on MPC5121 based embedded
system. I'm just confused about the OF related code in the kernel. <br>
I know in the Linux device driver model, a driver is attached to a
device through the bus_type methods. For example, the platform_driver
is attached to a platform device through the register_platform_driver()
method. This method will scan over the device list in the bus, and
perform probe() method when the match() method return ok. <br>
My question is, in PPC Linux, there is a structure named <b>of_platform_driver</b>
which is similar to <b>platform_driver</b> and there is also a bus_type
named <b>of_platform_bus_type</b> which is similar to <b>platform_bus_type</b>.
But I can't find any information about the structure
of_platform_device. How do the kernel create the of_platform_device and
place them into the device list in the <b>platform_bus_type</b> ? I
search the Internet and I can't find any information about this.Could anyone give me some information so that I can find out the
magic behind. Thanks!<br clear="all"><br>-- <br><font color="#888888">Terren.Chow<br>College of Informatics, SCAU <br>Graduate
Student<br>Lab of Embedded System and Wireless Sensor Network<br>MSN: <a href="mailto:terren.chow@hotmail.com" target="_blank">terren.chow@hotmail.com</a></font><br>