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

Arnd Bergmann arnd at arndb.de
Wed Feb 7 00:07:24 EST 2007


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?

	Arnd <><


More information about the Linuxppc-dev mailing list