diff options
| author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-12 16:32:20 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-12 16:32:20 -0400 |
| commit | cc6120c6687c34501c0b1d49b4d7e46c63911fed (patch) | |
| tree | a43eeb2ed68ba9ef544fe1f1dc108c8848ba0df9 /drivers/usb/host/uhci-hub.c | |
| parent | 7b799bc82b5eebb8937ff773e4c4be7260698627 (diff) | |
| parent | f5e09b7cac4a2705f55830db64d448c062e84e8e (diff) | |
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6
Diffstat (limited to 'drivers/usb/host/uhci-hub.c')
| -rw-r--r-- | drivers/usb/host/uhci-hub.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/usb/host/uhci-hub.c b/drivers/usb/host/uhci-hub.c index 4eace2b19ddb..a71e48a66805 100644 --- a/drivers/usb/host/uhci-hub.c +++ b/drivers/usb/host/uhci-hub.c | |||
| @@ -145,15 +145,16 @@ static int uhci_hub_status_data(struct usb_hcd *hcd, char *buf) | |||
| 145 | { | 145 | { |
| 146 | struct uhci_hcd *uhci = hcd_to_uhci(hcd); | 146 | struct uhci_hcd *uhci = hcd_to_uhci(hcd); |
| 147 | unsigned long flags; | 147 | unsigned long flags; |
| 148 | int status; | 148 | int status = 0; |
| 149 | 149 | ||
| 150 | spin_lock_irqsave(&uhci->lock, flags); | 150 | spin_lock_irqsave(&uhci->lock, flags); |
| 151 | if (uhci->hc_inaccessible) { | ||
| 152 | status = 0; | ||
| 153 | goto done; | ||
| 154 | } | ||
| 155 | 151 | ||
| 152 | uhci_scan_schedule(uhci, NULL); | ||
| 153 | if (uhci->hc_inaccessible) | ||
| 154 | goto done; | ||
| 155 | check_fsbr(uhci); | ||
| 156 | uhci_check_ports(uhci); | 156 | uhci_check_ports(uhci); |
| 157 | |||
| 157 | status = get_hub_status_data(uhci, buf); | 158 | status = get_hub_status_data(uhci, buf); |
| 158 | 159 | ||
| 159 | switch (uhci->rh_state) { | 160 | switch (uhci->rh_state) { |
