[patch] fix .text.exit error in mtd/maps/pci.c

From: Adrian Bunk (bunk@fs.tum.de)
Date: Tue Jun 25 2002 - 08:34:39 EST

The following error occured at the final linking of 2.4.19-rc1:

<-- snip -->

drivers/mtd/mtdlink.o(.data+0x934): undefined reference to `local
symbols in discarded section .text.exit'

<-- snip -->

The following patch fixes it (mtd_pci_remove is __devexit but the pointer
to it didn't use __devexit_p):

--- drivers/mtd/maps/pci.c.old Tue Jun 25 15:26:49 2002
+++ drivers/mtd/maps/pci.c Tue Jun 25 15:27:25 2002
@@ -361,7 +361,7 @@
 static struct pci_driver mtd_pci_driver = {
         name: "MTD PCI",
         probe: mtd_pci_probe,
- remove: mtd_pci_remove,
+ remove: __devexit_p(mtd_pci_remove),
         id_table: mtd_pci_ids,



You only think this is a free country. Like the US the UK spends a lot of time explaining its a free country because its a police state. Alan Cox

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

This archive was generated by hypermail 2b29 : Sun Jun 30 2002 - 22:00:09 EST