Skip to content

Commit

Permalink
USB: AMD5536: use pdev->revision
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Auke Kok authored and Greg Kroah-Hartman committed Oct 12, 2007
1 parent e6d42f0 commit 1d3ee41
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/usb/gadget/amd5536udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1d3ee41

Please sign in to comment.