Adding 'of_platform' bus support to the platform driver

R.Patil at mei-india.com R.Patil at mei-india.com
Thu Dec 20 19:23:55 EST 2012


Hello,

We are working on one of the platform drivers for our board (based on MPC8313ERDB). Previously, this driver was supporting platform bus but now we want to change it to support 'of_platform' bus. While supporting platform bus, the platform device structure is initialised in board setup file, and platform device is registered using 'platform_device_register_simple' call. 

Now if we want to support 'of_platform' bus, the information related to the the device will be extracted from device tree in the platform driver itself and we would not be required to call 'platform_device_register_simple' to register the platform device. Is this understanding correct?

Thanks and Regards,
RahulEmail Disclaimer:
  ---------------------------

This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and  privileged information. Computer viruses can be transmitted via email.The recipient should check this email and any  attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.


More information about the Linuxppc-dev mailing list