PCI: Fold struct pci_vpd_pci22 into struct pci_vpd
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 22 Feb 2016 20:09:52 +0000 (14:09 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 29 Feb 2016 23:47:36 +0000 (17:47 -0600)
commit408641e93aa5283e586fefd4dc72e67c92aae075
treef261bf5a0335405a727c67fc09b23f772de588dc
parentf1cd93f9aabe3b8dcac53de1c88279dbd8e529c3
PCI: Fold struct pci_vpd_pci22 into struct pci_vpd

We only support one flavor of VPD, so there's no need to complicate things
by having a "generic" struct pci_vpd and a more specific struct
pci_vpd_pci22.

Fold struct pci_vpd_pci22 directly into struct pci_vpd.

[bhelgaas: remove NULL check before kfree of dev->vpd (per kfreeaddr.cocci)]
Tested-by: Shane Seymour <shane.seymour@hpe.com>
Tested-by: Babu Moger <babu.moger@oracle.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
drivers/pci/access.c
drivers/pci/pci.h