Commit 980849ca authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Add needed __devexit_p's to two gameport drivers

From: "Noah J. Misch" <noah@caltech.edu>

Two gameport drivers need __devexit_p wrapped around their remove
functions.  A newer binutils caught this is a link error.  This patch fixes
that.

Wrapped a __devexit_p around the 'remove' functions of two gameport
drivers.  The lack of __devexit_p was wrong according to linux/init.h,
differed from the practices in nearby files, and caused a link error with
binutils 2.14.90.0.5.
parent 689d2617
...@@ -140,7 +140,7 @@ static struct pci_driver fm801_gp_driver = { ...@@ -140,7 +140,7 @@ static struct pci_driver fm801_gp_driver = {
.name = "FM801 GP", .name = "FM801 GP",
.id_table = fm801_gp_id_table, .id_table = fm801_gp_id_table,
.probe = fm801_gp_probe, .probe = fm801_gp_probe,
.remove = fm801_gp_remove, .remove = __devexit_p(fm801_gp_remove),
}; };
int __init fm801_gp_init(void) int __init fm801_gp_init(void)
......
...@@ -168,7 +168,7 @@ static struct pci_driver vortex_driver = { ...@@ -168,7 +168,7 @@ static struct pci_driver vortex_driver = {
.name = "vortex", .name = "vortex",
.id_table = vortex_id_table, .id_table = vortex_id_table,
.probe = vortex_probe, .probe = vortex_probe,
.remove = vortex_remove, .remove = __devexit_p(vortex_remove),
}; };
int __init vortex_init(void) int __init vortex_init(void)
......
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