]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit152e4b629a7bc6fb1ad56b09a4dfcd543ff77194
treef261bf5a0335405a727c67fc09b23f772de588dc
parent65947387ab4bf993824fe027652aaac0f60448fb
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