2002-02-09 08:48:10

by Junio C Hamano

[permalink] [raw]
Subject: [PATCH] drivers/sound/via82cxxx_audio.c (binutils .text.exit problem)

It appears that via82cxxx audio driver in 2.4.18-pre9 still has
.text.exit problem with newer binutils. I've found that the following
patch (by Andrew Morton <[email protected]>) fixes the linkage problem.

--- 2.4.18-pre9-ac0-cd-c/drivers/sound/via82cxxx_audio.c~ Sat Feb 9 00:30:16 2002
+++ 2.4.18-pre9-ac0-cd-c/drivers/sound/via82cxxx_audio.c Sat Feb 9 00:30:45 2002
@@ -365,7 +365,7 @@
name: VIA_MODULE_NAME,
id_table: via_pci_tbl,
probe: via_init_one,
- remove: via_remove_one,
+ remove: __devexit_p(via_remove_one),
};


@@ -3271,7 +3271,7 @@
}


-static void __exit via_remove_one (struct pci_dev *pdev)
+static void __devexit via_remove_one (struct pci_dev *pdev)
{
struct via_info *card;