diff options
author | Manjunath Goudar <manjunath.goudar@linaro.org> | 2013-05-28 09:04:50 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-30 08:36:03 -0400 |
commit | 2621d0119e574f12496c4ab731265d5777cb6a18 (patch) | |
tree | 33dcdb956f43d4f4b8859f1ebbaf6cbae400fae5 /drivers/usb/host/ohci-pci.c | |
parent | 95e44d44fc29b3d84a74fc5793d8a78ba843c66b (diff) |
USB: OHCI: Generic changes to make ohci-pci a separate driver
Note that this changes is part of separating the ohci pci host controller
driver from ohci-hcd host code.
This contains :
-Moved sb800_prefetch() function from ohci-pci.c to pci-quirks.c file
and EXPORTed, this is part of the effort to move the ohci pci related
code to generic pci code.
-Passed "device" argument instead of "ohci_hcd" in sb800_prefetch()
function to avoid extra include file in pci-quirks.c.
V2:
-Passed "device" argment instead of "pci_dev", then we use to_pci_dev()
to get the "pci_dev" structure.
Signed-off-by: Manjunath Goudar <manjunath.goudar@linaro.org>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ohci-pci.c')
-rw-r--r-- | drivers/usb/host/ohci-pci.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/usb/host/ohci-pci.c b/drivers/usb/host/ohci-pci.c index 2c27a5fc4bfe..c3fa93638ea6 100644 --- a/drivers/usb/host/ohci-pci.c +++ b/drivers/usb/host/ohci-pci.c | |||
@@ -168,19 +168,6 @@ static int ohci_quirk_amd700(struct usb_hcd *hcd) | |||
168 | return 0; | 168 | return 0; |
169 | } | 169 | } |
170 | 170 | ||
171 | static void sb800_prefetch(struct ohci_hcd *ohci, int on) | ||
172 | { | ||
173 | struct pci_dev *pdev; | ||
174 | u16 misc; | ||
175 | |||
176 | pdev = to_pci_dev(ohci_to_hcd(ohci)->self.controller); | ||
177 | pci_read_config_word(pdev, 0x50, &misc); | ||
178 | if (on == 0) | ||
179 | pci_write_config_word(pdev, 0x50, misc & 0xfcff); | ||
180 | else | ||
181 | pci_write_config_word(pdev, 0x50, misc | 0x0300); | ||
182 | } | ||
183 | |||
184 | /* List of quirks for OHCI */ | 171 | /* List of quirks for OHCI */ |
185 | static const struct pci_device_id ohci_pci_quirks[] = { | 172 | static const struct pci_device_id ohci_pci_quirks[] = { |
186 | { | 173 | { |