Commit ba66ddfa authored by Sam Ravnborg's avatar Sam Ravnborg Committed by Linus Torvalds

pcmcia: silence section mismatch warnings from pci_driver variables

Silence following warnings:
WARNING: drivers/pcmcia/built-in.o(.data+0x14e0): Section mismatch in reference from the variable pd6729_pci_drv to the function .devinit.text:pd6729_pci_probe()
WARNING: drivers/pcmcia/built-in.o(.data+0x14e8): Section mismatch in reference from the variable pd6729_pci_drv to the function .devexit.text:pd6729_pci_remove()
WARNING: drivers/pcmcia/built-in.o(.data+0x16c0): Section mismatch in reference from the variable i82092aa_pci_drv to the function .devinit.text:i82092aa_pci_probe()
WARNING: drivers/pcmcia/built-in.o(.data+0x16c8): Section mismatch in reference from the variable i82092aa_pci_drv to the function .devexit.text:i82092aa_pci_remove()

Rename the variables from *_drv to *_driver so modpost ignore the OK
references to __devinit/__devexit functions.
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ed49f5d0
...@@ -53,7 +53,7 @@ static int i82092aa_socket_resume (struct pci_dev *dev) ...@@ -53,7 +53,7 @@ static int i82092aa_socket_resume (struct pci_dev *dev)
} }
#endif #endif
static struct pci_driver i82092aa_pci_drv = { static struct pci_driver i82092aa_pci_driver = {
.name = "i82092aa", .name = "i82092aa",
.id_table = i82092aa_pci_ids, .id_table = i82092aa_pci_ids,
.probe = i82092aa_pci_probe, .probe = i82092aa_pci_probe,
...@@ -714,13 +714,13 @@ static int i82092aa_set_mem_map(struct pcmcia_socket *socket, struct pccard_mem_ ...@@ -714,13 +714,13 @@ static int i82092aa_set_mem_map(struct pcmcia_socket *socket, struct pccard_mem_
static int i82092aa_module_init(void) static int i82092aa_module_init(void)
{ {
return pci_register_driver(&i82092aa_pci_drv); return pci_register_driver(&i82092aa_pci_driver);
} }
static void i82092aa_module_exit(void) static void i82092aa_module_exit(void)
{ {
enter("i82092aa_module_exit"); enter("i82092aa_module_exit");
pci_unregister_driver(&i82092aa_pci_drv); pci_unregister_driver(&i82092aa_pci_driver);
if (sockets[0].io_base>0) if (sockets[0].io_base>0)
release_region(sockets[0].io_base, 2); release_region(sockets[0].io_base, 2);
leave("i82092aa_module_exit"); leave("i82092aa_module_exit");
......
...@@ -778,7 +778,7 @@ static struct pci_device_id pd6729_pci_ids[] = { ...@@ -778,7 +778,7 @@ static struct pci_device_id pd6729_pci_ids[] = {
}; };
MODULE_DEVICE_TABLE(pci, pd6729_pci_ids); MODULE_DEVICE_TABLE(pci, pd6729_pci_ids);
static struct pci_driver pd6729_pci_drv = { static struct pci_driver pd6729_pci_driver = {
.name = "pd6729", .name = "pd6729",
.id_table = pd6729_pci_ids, .id_table = pd6729_pci_ids,
.probe = pd6729_pci_probe, .probe = pd6729_pci_probe,
...@@ -791,12 +791,12 @@ static struct pci_driver pd6729_pci_drv = { ...@@ -791,12 +791,12 @@ static struct pci_driver pd6729_pci_drv = {
static int pd6729_module_init(void) static int pd6729_module_init(void)
{ {
return pci_register_driver(&pd6729_pci_drv); return pci_register_driver(&pd6729_pci_driver);
} }
static void pd6729_module_exit(void) static void pd6729_module_exit(void)
{ {
pci_unregister_driver(&pd6729_pci_drv); pci_unregister_driver(&pd6729_pci_driver);
} }
module_init(pd6729_module_init); module_init(pd6729_module_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