Commit fa417c36 authored by Sergei Shtylyov's avatar Sergei Shtylyov Committed by Greg Kroah-Hartman

USB: OHCI: use pci_dev->revision

Commit ab1666c1 (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: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent dfb2130c
...@@ -151,7 +151,7 @@ static int ohci_quirk_amd700(struct usb_hcd *hcd) ...@@ -151,7 +151,7 @@ static int ohci_quirk_amd700(struct usb_hcd *hcd)
{ {
struct ohci_hcd *ohci = hcd_to_ohci(hcd); struct ohci_hcd *ohci = hcd_to_ohci(hcd);
struct pci_dev *amd_smbus_dev; struct pci_dev *amd_smbus_dev;
u8 rev = 0; u8 rev;
if (usb_amd_find_chipset_info()) if (usb_amd_find_chipset_info())
ohci->flags |= OHCI_QUIRK_AMD_PLL; ohci->flags |= OHCI_QUIRK_AMD_PLL;
...@@ -161,7 +161,7 @@ static int ohci_quirk_amd700(struct usb_hcd *hcd) ...@@ -161,7 +161,7 @@ static int ohci_quirk_amd700(struct usb_hcd *hcd)
if (!amd_smbus_dev) if (!amd_smbus_dev)
return 0; return 0;
pci_read_config_byte(amd_smbus_dev, PCI_REVISION_ID, &rev); rev = amd_smbus_dev->revision;
/* SB800 needs pre-fetch fix */ /* SB800 needs pre-fetch fix */
if ((rev >= 0x40) && (rev <= 0x4f)) { if ((rev >= 0x40) && (rev <= 0x4f)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment