Skip to content

Commit b5e5e8a

Browse files
Lorenzo Pieralisibjorn-helgaas
authored andcommitted
ARM/PCI: Remove msi_controller from struct pci_sys_data
ARM now uses pci_bus->msi to store the msi_controller pointer, so we don't need to save it in struct pci_sys_data, and we don't need to implement pcibios_msi_controller() to get it out of pci_sys_data. Remove msi_controller from struct pci_sys_data and pcibios_msi_controller(). [bhelgaas: changelog, split into separate patch] Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Jingoo Han <jingoohan1@gmail.com>
1 parent 8953aab commit b5e5e8a

2 files changed

Lines changed: 0 additions & 15 deletions

File tree

‎arch/arm/include/asm/mach/pci.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ struct hw_pci {
4040
* Per-controller structure
4141
*/
4242
struct pci_sys_data {
43-
#ifdef CONFIG_PCI_MSI
44-
struct msi_controller *msi_ctrl;
45-
#endif
4643
struct list_head node;
4744
int busnr; /* primary bus number */
4845
u64 mem_offset; /* bus->cpu memory mapping offset */

‎arch/arm/kernel/bios32.c‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,6 @@
1818

1919
static int debug_pci;
2020

21-
#ifdef CONFIG_PCI_MSI
22-
struct msi_controller *pcibios_msi_controller(struct pci_dev *dev)
23-
{
24-
struct pci_sys_data *sysdata = dev->bus->sysdata;
25-
26-
return sysdata->msi_ctrl;
27-
}
28-
#endif
29-
3021
/*
3122
* We can't use pci_get_device() here since we are
3223
* called from interrupt context.
@@ -462,9 +453,6 @@ static void pcibios_init_hw(struct device *parent, struct hw_pci *hw,
462453
if (WARN(!sys, "PCI: unable to allocate sys data!"))
463454
break;
464455

465-
#ifdef CONFIG_PCI_MSI
466-
sys->msi_ctrl = hw->msi_ctrl;
467-
#endif
468456
sys->busnr = busnr;
469457
sys->swizzle = hw->swizzle;
470458
sys->map_irq = hw->map_irq;

0 commit comments

Comments
 (0)