lkml.org 
[lkml]   [2003]   [Aug]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 2.6.0-test3][OSS] ac97_plugin_ad1980.c: warning fix
From
Date
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



--- linux-2.6.0-test3/sound/oss/ac97_plugin_ad1980.c 2003-07-28 10:44:11.000000000 +0530
+++ linux-2.6.0-test3-nvk/sound/oss/ac97_plugin_ad1980.c 2003-08-10 19:36:14.000000000 +0530
@@ -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 */
}
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.052 / U:3.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site