On 5 July 2013 01:46, Alan Stern <stern@rowland.harvard.edu> wrote:
On Thu, 4 Jul 2013, Manjunath Goudar wrote:

> Separate the OHCI EP93XX host controller driver from ohci-hcd
> host code so that it can be built as a separate driver module.
> This work is part of enabling multi-platform kernels on ARM.

> @@ -79,7 +93,10 @@ static int usb_hcd_ep93xx_probe(const struct hc_driver *driver,
>
>       ep93xx_start_hc(&pdev->dev);
>
> -     ohci_hcd_init(hcd_to_ohci(hcd));
> +     ohci = hcd_to_ohci(hcd);
> +     ohci->next_statechange = jiffies;
> +     spin_lock_init(&ohci->lock);
> +     INIT_LIST_HEAD(&ohci->pending);
>
>       retval = usb_add_hcd(hcd, pdev->resource[1].start, 0);
>       if (retval == 0)

Instead of ohci_hcd_ini() function call,wrote above code.

Why did you add these lines?

Alan Stern