[patch] fix .text.exit error in neofb.c

Adrian Bunk (bunk@fs.tum.de)
Tue, 25 Jun 2002 14:30:51 +0200 (CEST)


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

<-- snip -->

...
drivers/video/video.o(.data+0x46b4): more undefined references to
`local symbols in discarded section .text.exit' follow
...

<-- snip -->

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

--- drivers/video/neofb.c.old Tue Jun 25 12:53:45 2002
+++ drivers/video/neofb.c Tue Jun 25 12:54:28 2002
@@ -2330,7 +2330,7 @@
name: "neofb",
id_table: neofb_devices,
probe: neofb_probe,
- remove: neofb_remove
+ remove: __devexit_p(neofb_remove)
};

/* **************************** init-time only **************************** */

cu
Adrian

-- 

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/