[PATCH 2/3] add soc setup code for USB DR OTG mode

Kumar Gala galak at kernel.crashing.org
Wed Feb 7 01:23:19 EST 2007


On Feb 6, 2007, at 7:07 AM, Arnd Bergmann wrote:

> On Monday 05 February 2007 16:15, Kumar Gala wrote:
>>> +                     usb_data.operating_mode = FSL_USB2_DR_HOST;
>>> +                     usb_dev_dr_host =  
>>> platform_device_register_simple(
>>> +                                     "fsl-ehci", i, r, 2);
>>> +                     if (IS_ERR(usb_dev_dr_host)) {
>>> +                             ret = PTR_ERR(usb_dev_dr_host);
>>> +                             goto err;
>
> I just saw that this file has a number of calls to
> platform_device_register_simple() for devices that come from the OF
> device tree.
>
> Can this be converted to use of_register_platform_driver() and
> of_platform_device_probe() instead?

This is an ongoing issue and will help once arch/ppc consumers of  
these drivers go away.  Until then we will continue to use  
platform_devices.

- k



More information about the Linuxppc-dev mailing list