PCI/VPD: Embed struct pci_vpd in struct pci_dev
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 8 Aug 2021 17:21:56 +0000 (19:21 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 12 Aug 2021 17:48:42 +0000 (12:48 -0500)
commitfd00faa375fbb9d46ae0730d0faf4a3006301005
treee88842d70b8d6bc30b43104772397ca3b392173c
parent22ff2bcec704a7a8c43a998251e0757cd2de66e1
PCI/VPD: Embed struct pci_vpd in struct pci_dev

Now that struct pci_vpd is really small, simplify the code by embedding
struct pci_vpd directly in struct pci_dev instead of dynamically allocating
it.

Link: https://lore.kernel.org/r/d898489e-22ba-71f1-2f31-f1a78dc15849@gmail.com
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/probe.c
drivers/pci/vpd.c
include/linux/pci.h