Skip to content

Commit

Permalink
USB: OHCI: use pci_dev->revision
Browse files Browse the repository at this point in the history
Commit ab1666c (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>
  • Loading branch information
Sergei Shtylyov authored and Greg Kroah-Hartman committed Mar 7, 2011
1 parent dfb2130 commit fa417c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/host/ohci-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ static int ohci_quirk_amd700(struct usb_hcd *hcd)
{
struct ohci_hcd *ohci = hcd_to_ohci(hcd);
struct pci_dev *amd_smbus_dev;
u8 rev = 0;
u8 rev;

if (usb_amd_find_chipset_info())
ohci->flags |= OHCI_QUIRK_AMD_PLL;
Expand All @@ -161,7 +161,7 @@ static int ohci_quirk_amd700(struct usb_hcd *hcd)
if (!amd_smbus_dev)
return 0;

pci_read_config_byte(amd_smbus_dev, PCI_REVISION_ID, &rev);
rev = amd_smbus_dev->revision;

/* SB800 needs pre-fetch fix */
if ((rev >= 0x40) && (rev <= 0x4f)) {
Expand Down

0 comments on commit fa417c3

Please sign in to comment.