diff options
author | David Brownell <david-b@pacbell.net> | 2006-09-03 15:21:50 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-27 14:58:57 -0400 |
commit | cd22afda3f84452c6def29a68b06933e814e0e95 (patch) | |
tree | 4e5ab29301df0417ed4607dcc6bcda8f23fbe1a5 /drivers/usb/host/ohci-at91.c | |
parent | 901b3d75e71535f29b64f352e94ff474d95df475 (diff) |
USB: ohci-at91, two one-liners
This includes two one-liners forwarded to me for the OHCI support on at91:
- KB920x (and other boards with CPUs in non-BGA packages) need a slightly
different way to say "ignore that port, it's not pinned out";
- On resume, if we turn clocks on, record that we did so.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/ohci-at91.c')
-rw-r--r-- | drivers/usb/host/ohci-at91.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c index 5a5bdf374d76..b466581beb4a 100644 --- a/drivers/usb/host/ohci-at91.c +++ b/drivers/usb/host/ohci-at91.c | |||
@@ -193,7 +193,7 @@ ohci_at91_start (struct usb_hcd *hcd) | |||
193 | if ((ret = ohci_init(ohci)) < 0) | 193 | if ((ret = ohci_init(ohci)) < 0) |
194 | return ret; | 194 | return ret; |
195 | 195 | ||
196 | root->maxchild = board->ports; | 196 | ohci->num_ports = board->ports; |
197 | 197 | ||
198 | if ((ret = ohci_run(ohci)) < 0) { | 198 | if ((ret = ohci_run(ohci)) < 0) { |
199 | err("can't start %s", hcd->self.bus_name); | 199 | err("can't start %s", hcd->self.bus_name); |
@@ -297,6 +297,7 @@ static int ohci_hcd_at91_drv_resume(struct platform_device *pdev) | |||
297 | if (!clocked) { | 297 | if (!clocked) { |
298 | clk_enable(iclk); | 298 | clk_enable(iclk); |
299 | clk_enable(fclk); | 299 | clk_enable(fclk); |
300 | clocked = 1; | ||
300 | } | 301 | } |
301 | 302 | ||
302 | return 0; | 303 | return 0; |