Skip to content
Snippets Groups Projects
Commit d4a62ea4 authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Bjorn Helgaas
Browse files

stmmac: pci: Use pci_dev_id() helper


Use new helper pci_dev_id() to simplify the code.

Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent cc49baa9
No related branches found
No related tags found
No related merge requests found
......@@ -204,7 +204,7 @@ static int quark_default_data(struct pci_dev *pdev,
ret = 1;
}
plat->bus_id = PCI_DEVID(pdev->bus->number, pdev->devfn);
plat->bus_id = pci_dev_id(pdev);
plat->phy_addr = ret;
plat->interface = PHY_INTERFACE_MODE_RMII;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment