aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/gadget/amd5536udc.c6
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(
3285 3285
3286 pci_set_drvdata(pdev, dev); 3286 pci_set_drvdata(pdev, dev);
3287 3287
3288 /* chip revision */ 3288 /* chip revision for Hs AMD5536 */
3289 dev->chiprev = 0; 3289 dev->chiprev = pdev->revision;
3290 3290
3291 pci_set_master(pdev); 3291 pci_set_master(pdev);
3292 pci_set_mwi(pdev); 3292 pci_set_mwi(pdev);
3293 3293
3294 /* chip rev for Hs AMD5536 */
3295 pci_read_config_byte(pdev, PCI_REVISION_ID, (u8 *) &dev->chiprev);
3296 /* init dma pools */ 3294 /* init dma pools */
3297 if (use_dma) { 3295 if (use_dma) {
3298 retval = init_dma_pools(dev); 3296 retval = init_dma_pools(dev);