Adding 'of_platform' bus support to the platform driver
From: <hidden>
Date: 2012-12-20 08:39:02
Hello, We are working on one of the platform drivers for our board (based on MPC83= 13ERDB). Previously, this driver was supporting platform bus but now we wan= t to change it to support 'of=5Fplatform' bus. While supporting platform bu= s, the platform device structure is initialised in board setup file, and pl= atform device is registered using 'platform=5Fdevice=5Fregister=5Fsimple' c= all.=20 Now if we want to support 'of=5Fplatform' bus, the information related to t= he the device will be extracted from device tree in the platform driver its= elf and we would not be required to call 'platform=5Fdevice=5Fregister=5Fsi= mple' 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 i= ntended recipient(s) and may contain confidential and privileged informati= on. Computer viruses can be transmitted via email.The recipient should chec= k 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.