[2.5 patch] fix .text.exit error in tdfxfb.c

From: Adrian Bunk (bunk@fs.tum.de)
Date: Sat Sep 21 2002 - 15:17:36 EST

Hi James,

Burton Samograd reported a .text.exit error at the final linking in
2.5.37. The problem is that tdfxfb_remove is __devexit but the pointer to
the function didn't use __devexit_p. The following patch fixes it:

--- linux-2.5.37/drivers/video/tdfxfb.c.old 2002-09-21 22:06:55.000000000 +0200
+++ linux-2.5.37/drivers/video/tdfxfb.c 2002-09-21 22:07:47.000000000 +0200
@@ -146,7 +146,7 @@
         .name = "tdfxfb",
         .id_table = tdfxfb_id_table,
         .probe = tdfxfb_probe,
- .remove = tdfxfb_remove,
+ .remove = __devexit_p(tdfxfb_remove),

 MODULE_DEVICE_TABLE(pci, tdfxfb_id_table);



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 : Mon Sep 23 2002 - 22:00:33 EST