OSDN Git Service

PCI/VPD: Remove pci_set_vpd_size()
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 12 Feb 2021 10:02:47 +0000 (11:02 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 30 Apr 2021 19:37:11 +0000 (14:37 -0500)
commit384d0c68204a4a657f4bbc096c50d729ae7d9ef0
treeb5c7d6e6ba9b1432de4752deb820a6faaf96ac81
parent26c0cf2a603d4ebf00d8c1baf714763fca31dba4
PCI/VPD: Remove pci_set_vpd_size()

24a1720a0841 ("cxgb4: collect serial config version from register") removed
the only usage of pci_set_vpd_size(). If a device needs to override the
auto-detected VPD size, then this can be done with a PCI quirk, as is done
for Chelsio devices. There's no need to allow drivers to change the VPD
size.

Remove pci_set_vpd_size().

[bhelgaas: squash in Arnd's fix for "'pci_vpd_set_size' defined but not
used" from
https://lore.kernel.org/r/20210421140334.3847155-1-arnd@kernel.org]
Link: https://lore.kernel.org/r/47d86e52-9bcf-7da7-1edb-0d988a7a82ab@gmail.com
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Krzysztof WilczyƄski <kw@linux.com>
drivers/pci/vpd.c
include/linux/pci.h