pcie: fix section mismatch warning
Fix following section mismatch warning (when compiled with CONFIG_HOTPLUG=n): WARNING: drivers/pci/built-in.o - Section mismatch: reference to .init.text:pcie_portdrv_probe from .data between 'pcie_portdrv' (at offset 0xe40) and 'pcie_portdrv_err_handler' This warning was fixed by renaming pcie_portdrv to pcie_portdriver so we pass the whitelist. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
7f375f325f
commit
3603a6a37c
1 changed files with 3 additions and 3 deletions
|
@ -276,7 +276,7 @@ static struct pci_error_handlers pcie_portdrv_err_handler = {
|
||||||
.resume = pcie_portdrv_err_resume,
|
.resume = pcie_portdrv_err_resume,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct pci_driver pcie_portdrv = {
|
static struct pci_driver pcie_portdriver = {
|
||||||
.name = (char *)device_name,
|
.name = (char *)device_name,
|
||||||
.id_table = &port_pci_ids[0],
|
.id_table = &port_pci_ids[0],
|
||||||
|
|
||||||
|
@ -298,7 +298,7 @@ static int __init pcie_portdrv_init(void)
|
||||||
printk(KERN_WARNING "PCIE: bus_register error: %d\n", retval);
|
printk(KERN_WARNING "PCIE: bus_register error: %d\n", retval);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
retval = pci_register_driver(&pcie_portdrv);
|
retval = pci_register_driver(&pcie_portdriver);
|
||||||
if (retval)
|
if (retval)
|
||||||
pcie_port_bus_unregister();
|
pcie_port_bus_unregister();
|
||||||
out:
|
out:
|
||||||
|
@ -307,7 +307,7 @@ static int __init pcie_portdrv_init(void)
|
||||||
|
|
||||||
static void __exit pcie_portdrv_exit(void)
|
static void __exit pcie_portdrv_exit(void)
|
||||||
{
|
{
|
||||||
pci_unregister_driver(&pcie_portdrv);
|
pci_unregister_driver(&pcie_portdriver);
|
||||||
pcie_port_bus_unregister();
|
pcie_port_bus_unregister();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue