Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/82xx: Remove pq2_init_pci

Commit 859b21a008eb ("powerpc: drop PowerQUICC II Family ADS platform
support") removed last user of pq2_init_pci.

Remove it.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/8b2db7c3c2c346aa8aa49507415c360d441e5bf5.1692259498.git.christophe.leroy@csgroup.eu

authored by

Christophe Leroy and committed by
Michael Ellerman
188da8af 5951b62b

-46
-46
arch/powerpc/platforms/82xx/pq2.c
··· 32 32 panic("Restart failed\n"); 33 33 } 34 34 NOKPROBE_SYMBOL(pq2_restart) 35 - 36 - #ifdef CONFIG_PCI 37 - static int pq2_pci_exclude_device(struct pci_controller *hose, 38 - u_char bus, u8 devfn) 39 - { 40 - if (bus == 0 && PCI_SLOT(devfn) == 0) 41 - return PCIBIOS_DEVICE_NOT_FOUND; 42 - else 43 - return PCIBIOS_SUCCESSFUL; 44 - } 45 - 46 - static void __init pq2_pci_add_bridge(struct device_node *np) 47 - { 48 - struct pci_controller *hose; 49 - struct resource r; 50 - 51 - if (of_address_to_resource(np, 0, &r) || r.end - r.start < 0x10b) 52 - goto err; 53 - 54 - pci_add_flags(PCI_REASSIGN_ALL_BUS); 55 - 56 - hose = pcibios_alloc_controller(np); 57 - if (!hose) 58 - return; 59 - 60 - hose->dn = np; 61 - 62 - setup_indirect_pci(hose, r.start + 0x100, r.start + 0x104, 0); 63 - pci_process_bridge_OF_ranges(hose, np, 1); 64 - 65 - return; 66 - 67 - err: 68 - printk(KERN_ERR "No valid PCI reg property in device tree\n"); 69 - } 70 - 71 - void __init pq2_init_pci(void) 72 - { 73 - struct device_node *np; 74 - 75 - ppc_md.pci_exclude_device = pq2_pci_exclude_device; 76 - 77 - for_each_compatible_node(np, NULL, "fsl,pq2-pci") 78 - pq2_pci_add_bridge(np); 79 - } 80 - #endif