[linux-sunxi] Re: [PATCH v6 1/2] ohci-platform: Add support for devicetree instantiation

2014-01-15 Thread Hans de Goede
Hi, On 01/15/2014 05:30 PM, Alan Stern wrote: On Wed, 15 Jan 2014, Hans de Goede wrote: +static int ohci_platform_power_on(struct platform_device *dev) +{ + struct usb_hcd *hcd = platform_get_drvdata(dev); + struct ohci_platform_priv *priv = hcd_to_ohci_priv(hcd); + int clk,

[linux-sunxi] Re: [PATCH v6 1/2] ohci-platform: Add support for devicetree instantiation

2014-01-15 Thread Alan Stern
On Wed, 15 Jan 2014, Hans de Goede wrote: > +static int ohci_platform_power_on(struct platform_device *dev) > +{ > + struct usb_hcd *hcd = platform_get_drvdata(dev); > + struct ohci_platform_priv *priv = hcd_to_ohci_priv(hcd); > + int clk, ret; > + > + for (clk = 0; clk < OHCI_MAX_