[PATCH] devexit fixes in i82092.c

Anders Gustafsson
2002-03-16T00:58:03Z

Hi,

this patch fixes "undefined reference to `local symbols in discarded
section .text.exit'" linking error.

--

//anders/g

--- linux-2.5.7-pre1/drivers/pcmcia/i82092.c Fri Nov 9 22:45:35 2001
+++ linux-2.5.7-pre1-reiser/drivers/pcmcia/i82092.c Sat Mar 16 01:39:42 2002
@@ -42,7 +42,7 @@
name: "i82092aa",
id_table: i82092aa_pci_ids,
probe: i82092aa_pci_probe,
- remove: i82092aa_pci_remove,
+ remove: __devexit_p(i82092aa_pci_remove),
suspend: NULL,
resume: NULL
};
@@ -88,7 +88,7 @@
static int socket_count; /* shortcut */

-static int __init i82092aa_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
+static int __devinit i82092aa_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
{
unsigned char configbyte;
int i;
@@ -160,7 +160,7 @@
return 0;
}

-static void __exit i82092aa_pci_remove(struct pci_dev *dev)
+static void __devexit i82092aa_pci_remove(struct pci_dev *dev)
{
enter("i82092aa_pci_remove");