diff options
author | Matthew Minter <matt@masarand.com> | 2017-07-31 17:37:49 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-08-03 16:21:31 -0500 |
commit | 2b8ff9f2769135a08fc7b9c989560f759b80cc1a (patch) | |
tree | 011501efe37e2d2f5cea73d758eda3e59f5dc1ec /arch/sh/drivers/pci/fixups-titan.c | |
parent | 902d886d4474a4d2661ae337f3c30dc7a8e59f28 (diff) |
sh/PCI: Remove __init optimisations from IRQ mapping functions/data
Currently many IRQ mapping functions and data structures use the __init and
__initdata optimisations. These result in the relevant functions being
innaccessible after boot time.
However for deferred IRQ assignment it is important to have access to these
functions at PCI device enable time.
Therefore, remove the optimisation from the relevant data structures and
functions to prepare for deferred IRQ assignment.
Signed-off-by: Matthew Minter <matt@masarand.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Rich Felker <dalias@libc.org>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Diffstat (limited to 'arch/sh/drivers/pci/fixups-titan.c')
-rw-r--r-- | arch/sh/drivers/pci/fixups-titan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/drivers/pci/fixups-titan.c b/arch/sh/drivers/pci/fixups-titan.c index bd1addb1b8be..a9d563e479d5 100644 --- a/arch/sh/drivers/pci/fixups-titan.c +++ b/arch/sh/drivers/pci/fixups-titan.c @@ -19,7 +19,7 @@ #include <mach/titan.h> #include "pci-sh4.h" -static char titan_irq_tab[] __initdata = { +static char titan_irq_tab[] = { TITAN_IRQ_WAN, TITAN_IRQ_LAN, TITAN_IRQ_MPCIA, @@ -27,7 +27,7 @@ static char titan_irq_tab[] __initdata = { TITAN_IRQ_USB, }; -int __init pcibios_map_platform_irq(const struct pci_dev *pdev, u8 slot, u8 pin) +int pcibios_map_platform_irq(const struct pci_dev *pdev, u8 slot, u8 pin) { int irq = titan_irq_tab[slot]; |