Commit 82de9a0c authored by Arnaud Lacombe's avatar Arnaud Lacombe Committed by Linus Torvalds

eisa/pci_eisa.c: fix BUG introduced by 005bdad7

While `pci_eisa_driver' still refer `pci_eisa_init', the .probe() function
should not be called after init memory release, as pointed out by commit
74b9a297. The structure is still referenced in the drivers subsystem, and can
be accesseed through sysfs, so the modpost warning is a false positive. Mark
it as such.

In the same time, the warning referenced in 005bdad7 did only mention
`pci_eisa_driver', not `pci_eisa_pci_tbl', so remove its marking.

Broken-by: Arnaud Lacombe <lacombar@gmail.com> (in 005bdad7)
Reported-by: default avatarTetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Signed-off-by: default avatarArnaud Lacombe <lacombar@gmail.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 288d5abe
...@@ -45,13 +45,13 @@ static int __init pci_eisa_init(struct pci_dev *pdev, ...@@ -45,13 +45,13 @@ static int __init pci_eisa_init(struct pci_dev *pdev,
return 0; return 0;
} }
static struct pci_device_id __initdata pci_eisa_pci_tbl[] = { static struct pci_device_id pci_eisa_pci_tbl[] = {
{ PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, { PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
PCI_CLASS_BRIDGE_EISA << 8, 0xffff00, 0 }, PCI_CLASS_BRIDGE_EISA << 8, 0xffff00, 0 },
{ 0, } { 0, }
}; };
static struct pci_driver __initdata pci_eisa_driver = { static struct pci_driver __refdata pci_eisa_driver = {
.name = "pci_eisa", .name = "pci_eisa",
.id_table = pci_eisa_pci_tbl, .id_table = pci_eisa_pci_tbl,
.probe = pci_eisa_init, .probe = pci_eisa_init,
......
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