diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /drivers/usb/host/xhci-ext-caps.h | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/usb/host/xhci-ext-caps.h')
-rw-r--r-- | drivers/usb/host/xhci-ext-caps.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci-ext-caps.h b/drivers/usb/host/xhci-ext-caps.h index ecc131c3fe33..78c4edac1db1 100644 --- a/drivers/usb/host/xhci-ext-caps.h +++ b/drivers/usb/host/xhci-ext-caps.h | |||
@@ -101,12 +101,15 @@ static inline int xhci_find_next_cap_offset(void __iomem *base, int ext_offset) | |||
101 | 101 | ||
102 | next = readl(base + ext_offset); | 102 | next = readl(base + ext_offset); |
103 | 103 | ||
104 | if (ext_offset == XHCI_HCC_PARAMS_OFFSET) | 104 | if (ext_offset == XHCI_HCC_PARAMS_OFFSET) { |
105 | /* Find the first extended capability */ | 105 | /* Find the first extended capability */ |
106 | next = XHCI_HCC_EXT_CAPS(next); | 106 | next = XHCI_HCC_EXT_CAPS(next); |
107 | else | 107 | ext_offset = 0; |
108 | } else { | ||
108 | /* Find the next extended capability */ | 109 | /* Find the next extended capability */ |
109 | next = XHCI_EXT_CAPS_NEXT(next); | 110 | next = XHCI_EXT_CAPS_NEXT(next); |
111 | } | ||
112 | |||
110 | if (!next) | 113 | if (!next) |
111 | return 0; | 114 | return 0; |
112 | /* | 115 | /* |