diff options
author | Auke Kok <auke-jan.h.kok@intel.com> | 2007-08-28 01:16:13 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-10-12 23:55:25 +0200 |
commit | 1d3ee41e9549609a6151216a0bcb06b758a64b6b (patch) | |
tree | 316b20d2bb44cf2e309c1e0eb1f2267ff53b0c4f /drivers/usb/gadget/amd5536udc.c | |
parent | USB: sisusbvga: Fix bug (diff) | |
download | linux-1d3ee41e9549609a6151216a0bcb06b758a64b6b.tar.xz linux-1d3ee41e9549609a6151216a0bcb06b758a64b6b.zip |
USB: AMD5536: use pdev->revision
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Cc: Thomas Dahlmann <thomas.dahlmann@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/amd5536udc.c')
-rw-r--r-- | drivers/usb/gadget/amd5536udc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/usb/gadget/amd5536udc.c b/drivers/usb/gadget/amd5536udc.c index e95ffc9eee3d..bdd5f2284b3a 100644 --- a/drivers/usb/gadget/amd5536udc.c +++ b/drivers/usb/gadget/amd5536udc.c @@ -3285,14 +3285,12 @@ static int udc_pci_probe( pci_set_drvdata(pdev, dev); - /* chip revision */ - dev->chiprev = 0; + /* chip revision for Hs AMD5536 */ + dev->chiprev = pdev->revision; pci_set_master(pdev); pci_set_mwi(pdev); - /* chip rev for Hs AMD5536 */ - pci_read_config_byte(pdev, PCI_REVISION_ID, (u8 *) &dev->chiprev); /* init dma pools */ if (use_dma) { retval = init_dma_pools(dev); |