]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM/PCI: Remove msi_controller from struct pci_sys_data
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 4 Aug 2015 16:58:49 +0000 (11:58 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 20 Aug 2015 17:02:50 +0000 (12:02 -0500)
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>
arch/arm/include/asm/mach/pci.h
arch/arm/kernel/bios32.c

index c074e7a319e732ce46cd7d52c9ce94dbba6fedfa..8857d2869a5f8cb0d76a8efb021d3bd2304fe3e1 100644 (file)
@@ -40,9 +40,6 @@ struct hw_pci {
  * Per-controller structure
  */
 struct pci_sys_data {
-#ifdef CONFIG_PCI_MSI
-       struct msi_controller *msi_ctrl;
-#endif
        struct list_head node;
        int             busnr;          /* primary bus number                   */
        u64             mem_offset;     /* bus->cpu memory mapping offset       */
index 283bc1c7b5027b20bcad060b7a990a33543d1b3c..874e1823f8036fd9915c63e8b95561e96c0152b7 100644 (file)
 
 static int debug_pci;
 
-#ifdef CONFIG_PCI_MSI
-struct msi_controller *pcibios_msi_controller(struct pci_dev *dev)
-{
-       struct pci_sys_data *sysdata = dev->bus->sysdata;
-
-       return sysdata->msi_ctrl;
-}
-#endif
-
 /*
  * We can't use pci_get_device() here since we are
  * called from interrupt context.
@@ -462,9 +453,6 @@ static void pcibios_init_hw(struct device *parent, struct hw_pci *hw,
                if (WARN(!sys, "PCI: unable to allocate sys data!"))
                        break;
 
-#ifdef CONFIG_PCI_MSI
-               sys->msi_ctrl = hw->msi_ctrl;
-#endif
                sys->busnr   = busnr;
                sys->swizzle = hw->swizzle;
                sys->map_irq = hw->map_irq;