diff options
author | Sergei Shtylyov <sshtylyov@ru.mvista.com> | 2011-03-03 13:10:05 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-03-07 15:15:21 -0500 |
commit | fa417c369b48a8f7acaf9aba1ff94b0969b0cb7e (patch) | |
tree | 2e63e36a0f16aa24770988c544150adb024133b0 /drivers/usb/host/ohci-pci.c | |
parent | dfb2130c453c2c6d36b5e0f39eca289cbdbb631d (diff) |
USB: OHCI: use pci_dev->revision
Commit ab1666c1364a209e6141d7c14e47a42b5f00eca2 (USB: quirk PLL power down mode)
added code that reads the revision ID from the PCI configuration register while
it's stored by PCI subsystem in the 'revision' field of 'struct pci_dev'...
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/ohci-pci.c')
-rw-r--r-- | drivers/usb/host/ohci-pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/ohci-pci.c b/drivers/usb/host/ohci-pci.c index 9816a2870d00..d84d6f0314f9 100644 --- a/drivers/usb/host/ohci-pci.c +++ b/drivers/usb/host/ohci-pci.c | |||
@@ -151,7 +151,7 @@ static int ohci_quirk_amd700(struct usb_hcd *hcd) | |||
151 | { | 151 | { |
152 | struct ohci_hcd *ohci = hcd_to_ohci(hcd); | 152 | struct ohci_hcd *ohci = hcd_to_ohci(hcd); |
153 | struct pci_dev *amd_smbus_dev; | 153 | struct pci_dev *amd_smbus_dev; |
154 | u8 rev = 0; | 154 | u8 rev; |
155 | 155 | ||
156 | if (usb_amd_find_chipset_info()) | 156 | if (usb_amd_find_chipset_info()) |
157 | ohci->flags |= OHCI_QUIRK_AMD_PLL; | 157 | ohci->flags |= OHCI_QUIRK_AMD_PLL; |
@@ -161,7 +161,7 @@ static int ohci_quirk_amd700(struct usb_hcd *hcd) | |||
161 | if (!amd_smbus_dev) | 161 | if (!amd_smbus_dev) |
162 | return 0; | 162 | return 0; |
163 | 163 | ||
164 | pci_read_config_byte(amd_smbus_dev, PCI_REVISION_ID, &rev); | 164 | rev = amd_smbus_dev->revision; |
165 | 165 | ||
166 | /* SB800 needs pre-fetch fix */ | 166 | /* SB800 needs pre-fetch fix */ |
167 | if ((rev >= 0x40) && (rev <= 0x4f)) { | 167 | if ((rev >= 0x40) && (rev <= 0x4f)) { |