[PATCH V2 1/2] USB: OHCI: make ohci-platform a separate driver

Alan Stern stern at rowland.harvard.edu
Sun Jun 2 14:20:34 EDT 2013


On Sun, 2 Jun 2013, Manjunath Goudar wrote:

> On 31 May 2013 19:37, Alan Stern <stern at rowland.harvard.edu> wrote:
> 

> > > +     return ohci_setup(ohci_to_hcd(ohci));
> >
> > You don't need to use ohci_to_hcd(), because the hcd value is already a
> > parameter in this function.
> >
> >
> After setting ohci's flag and  num_ports,we need to convert ohci to hcd
> that is what called ohci_to_hcd() function.

No, you don't need to convert it.  Just do:

	return ohci_setup(hcd);

Alan Stern




More information about the linux-arm-kernel mailing list