summaryrefslogtreecommitdiffstats
path: root/arch/alpha/kernel/sys_miata.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-10-28 10:53:24 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2017-10-28 10:53:24 -0700
commit22450e03acf18ef0dbdbbc155f0f97f105bf6878 (patch)
tree5b67531dcd3d7a1f355c1a1630345a2925c5679c /arch/alpha/kernel/sys_miata.c
parentb35f0ca74f055cc322fcbc6ec8c31cfb8dad892f (diff)
parent814eae5982cc55988f642f7f1d10eaf340845c00 (diff)
downloadlinux-22450e03acf18ef0dbdbbc155f0f97f105bf6878.tar.bz2
Merge tag 'pci-v4.14-fixes-6' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci
Pull PCI fix from Bjorn Helgaas: "Move alpha PCI IRQ map/swizzle functions out of initdata to fix regression from PCI core IRQ mapping changes (Lorenzo Pieralisi)" * tag 'pci-v4.14-fixes-6' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: alpha/PCI: Move pci_map_irq()/pci_swizzle() out of initdata
Diffstat (limited to 'arch/alpha/kernel/sys_miata.c')
-rw-r--r--arch/alpha/kernel/sys_miata.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/alpha/kernel/sys_miata.c b/arch/alpha/kernel/sys_miata.c
index d5b9776a608d..731d693fa1f9 100644
--- a/arch/alpha/kernel/sys_miata.c
+++ b/arch/alpha/kernel/sys_miata.c
@@ -149,10 +149,10 @@ miata_init_irq(void)
* comes in on. This makes interrupt processing much easier.
*/
-static int __init
+static int
miata_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
- static char irq_tab[18][5] __initdata = {
+ static char irq_tab[18][5] = {
/*INT INTA INTB INTC INTD */
{16+ 8, 16+ 8, 16+ 8, 16+ 8, 16+ 8}, /* IdSel 14, DC21142 */
{ -1, -1, -1, -1, -1}, /* IdSel 15, EIDE */
@@ -196,7 +196,7 @@ miata_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
return COMMON_TABLE_LOOKUP;
}
-static u8 __init
+static u8
miata_swizzle(struct pci_dev *dev, u8 *pinp)
{
int slot, pin = *pinp;