Commit 8c678b10 authored by Helge Deller's avatar Helge Deller Committed by Kyle McMartin

[PARISC] fix section mismatch in superio serial drivers

This patch fixes two section mismatches in superio serial setup:
WARNING: drivers/built-in.o(.text.superio_serial_init+0x78): Section mismatch: reference to .init.text:early_serial_setup (after 'superio_serial_init')
WARNING: drivers/built-in.o(.text.superio_serial_init+0xa4): Section mismatch: reference to .init.text:early_serial_setup (after 'superio_serial_init')
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Signed-off-by: default avatarKyle McMartin <kyle@parisc-linux.org>
parent 6fe077fd
...@@ -389,7 +389,7 @@ int superio_fixup_irq(struct pci_dev *pcidev) ...@@ -389,7 +389,7 @@ int superio_fixup_irq(struct pci_dev *pcidev)
return local_irq; return local_irq;
} }
static void __devinit superio_serial_init(void) static void __init superio_serial_init(void)
{ {
#ifdef CONFIG_SERIAL_8250 #ifdef CONFIG_SERIAL_8250
int retval; int retval;
...@@ -423,7 +423,7 @@ static void __devinit superio_serial_init(void) ...@@ -423,7 +423,7 @@ static void __devinit superio_serial_init(void)
} }
static void __devinit superio_parport_init(void) static void __init superio_parport_init(void)
{ {
#ifdef CONFIG_PARPORT_PC #ifdef CONFIG_PARPORT_PC
if (!parport_pc_probe_port(sio_dev.pp_base, if (!parport_pc_probe_port(sio_dev.pp_base,
...@@ -450,7 +450,7 @@ static void superio_fixup_pci(struct pci_dev *pdev) ...@@ -450,7 +450,7 @@ static void superio_fixup_pci(struct pci_dev *pdev)
DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_87415, superio_fixup_pci); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_87415, superio_fixup_pci);
static int __devinit static int __init
superio_probe(struct pci_dev *dev, const struct pci_device_id *id) superio_probe(struct pci_dev *dev, const struct pci_device_id *id)
{ {
struct superio_device *sio = &sio_dev; struct superio_device *sio = &sio_dev;
...@@ -485,7 +485,7 @@ superio_probe(struct pci_dev *dev, const struct pci_device_id *id) ...@@ -485,7 +485,7 @@ superio_probe(struct pci_dev *dev, const struct pci_device_id *id)
return -ENODEV; return -ENODEV;
} }
static struct pci_device_id superio_tbl[] = { static const struct pci_device_id superio_tbl[] = {
{ PCI_DEVICE(PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_87560_LIO) }, { PCI_DEVICE(PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_87560_LIO) },
{ PCI_DEVICE(PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_87560_USB) }, { PCI_DEVICE(PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_87560_USB) },
{ PCI_DEVICE(PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_87415) }, { PCI_DEVICE(PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_87415) },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment