PCI: Remove pci_fixup_cardbus()
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 9 Apr 2025 20:43:10 +0000 (22:43 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 10 Apr 2025 14:33:52 +0000 (09:33 -0500)
Since 1c7f4fe86f17 ("powerpc/pci: Remove pcibios_setup_bus_devices()")
there's no architecture left setting pci_fixup_cardbus. Therefore remove
support from PCI core.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/8de7da4c-2b16-4ee1-8c42-0d04f3c821c6@gmail.com
drivers/pci/pci.c
drivers/pcmcia/cardbus.c
include/linux/pci.h

index 4d7c9f64ea24ec754a135a2585c99489cfa641a9..c24d6f5a1012b90946cf08b7c5421f7aba5d08f4 100644 (file)
@@ -6806,11 +6806,6 @@ int __weak pci_ext_cfg_avail(void)
        return 1;
 }
 
-void __weak pci_fixup_cardbus(struct pci_bus *bus)
-{
-}
-EXPORT_SYMBOL(pci_fixup_cardbus);
-
 static int __init pci_setup(char *str)
 {
        while (str) {
index 45c8252c8edcd5c5251d4c6b723cc293c5259899..5e5cf2c3e2c84003ea0b4df6d66ade96d2cf07f8 100644 (file)
@@ -72,7 +72,6 @@ int __ref cb_alloc(struct pcmcia_socket *s)
        pci_lock_rescan_remove();
 
        s->functions = pci_scan_slot(bus, PCI_DEVFN(0, 0));
-       pci_fixup_cardbus(bus);
 
        max = bus->busn_res.start;
        for (pass = 0; pass < 2; pass++)
index 0e8e3fd77e96713054388bdc82f439e51023c1bf..d26e6611bd00457c8537ba372076fbc6fb3a52ef 100644 (file)
@@ -1139,9 +1139,6 @@ resource_size_t pcibios_align_resource(void *, const struct resource *,
                                resource_size_t,
                                resource_size_t);
 
-/* Weak but can be overridden by arch */
-void pci_fixup_cardbus(struct pci_bus *);
-
 /* Generic PCI functions used internally */
 
 void pcibios_resource_to_bus(struct pci_bus *bus, struct pci_bus_region *region,