Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

stmmac: pci: Use pci_dev_id() helper

Use new helper pci_dev_id() to simplify the code.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>

authored by

Heiner Kallweit and committed by
Bjorn Helgaas
d4a62ea4 cc49baa9

+1 -1
+1 -1
drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c
··· 204 204 ret = 1; 205 205 } 206 206 207 - plat->bus_id = PCI_DEVID(pdev->bus->number, pdev->devfn); 207 + plat->bus_id = pci_dev_id(pdev); 208 208 plat->phy_addr = ret; 209 209 plat->interface = PHY_INTERFACE_MODE_RMII; 210 210