提交 1d3ee41e 编写于 作者: A Auke Kok 提交者: Greg Kroah-Hartman

USB: AMD5536: use pdev->revision

Signed-off-by: NAuke Kok <auke-jan.h.kok@intel.com>
Cc: Thomas Dahlmann <thomas.dahlmann@amd.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 e6d42f0e
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册