In several places in the kernel we find PCI_DEVID used like this: PCI_DEVID(dev->bus->number, dev->devfn) Therefore create a helper for it. Heiner Kallweit (3): PCI: add helper pci_dev_id PCI: use helper pci_dev_id r8169: use new helper pci_dev_id drivers/net/ethernet/realtek/r8169.c | 3 +-- drivers/pci/msi.c | 6 +++--- drivers/pci/search.c | 10 +++------- include/linux/pci.h | 5 +++++ 4 files changed, 12 insertions(+), 12 deletions(-) -- 2.21.0