Skip to contentSkip to conversation

ac97_plugin_ad1980.c: warning fix

PATCH New Vinay K Nallamothu 1 participant 1 message Aug 10, 2003 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ac97_plugin_ad1980.c: warning fix

sound/oss/ac97_plugin_ad1980.c:
fix ad1980_remove to have correct number of arguments

without the patch the following compilation warning is thrown:

sound/oss/ac97_plugin_ad1980.c:90: warning: initialization from incompatible pointer type

sound/oss/ac97_plugin_ad1980.c +2 -1
@@ -28,6 +28,7 @@
 
 */
 
+#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/kernel.h>
@@ -45,7 +46,7 @@
  *	use of the codec after the probe function.
  */
  
-static void ad1980_remove(struct ac97_codec *codec)
+static void __devexit ad1980_remove(struct ac97_codec *codec, struct ac97_driver *driver)
 {
 	/* Nothing to do in the simple example */
 }