From: Vinay K Nallamothu <vinay-rc@naturesoft.net>
To: linux-sound@vger.kernel.org
Subject: [PATCH 2.6.0-test3][OSS] nec_vrc5477.c: incorrect use of __devinit
Date: Sun, 10 Aug 2003 15:51:42 +0000 [thread overview]
Message-ID: <marc-linux-sound-106052885908280@msgid-missing> (raw)
sound/oss/nec_vrc5477.c: __devinit is incorrectly used on the device
unloading function. This patch replaces it with __devexit.
--- linux-2.6.0-test3/sound/oss/nec_vrc5477.c 2003-08-09 12:11:40.000000000 +0530
+++ linux-2.6.0-test3-nvk/sound/oss/nec_vrc5477.c 2003-08-10 20:24:47.000000000 +0530
@@ -61,6 +61,7 @@
* 02.08.2001 0.1 Initial release
*/
+#include <linux/init.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/kernel.h>
@@ -1965,7 +1966,7 @@
return -1;
}
-static void __devinit vrc5477_ac97_remove(struct pci_dev *dev)
+static void __devexit vrc5477_ac97_remove(struct pci_dev *dev)
{
struct vrc5477_ac97_state *s = pci_get_drvdata(dev);
@@ -2001,7 +2002,7 @@
.name = VRC5477_AC97_MODULE_NAME,
.id_table = id_table,
.probe = vrc5477_ac97_probe,
- .remove = vrc5477_ac97_remove,
+ .remove = __devexit_p(vrc5477_ac97_remove)
};
static int __init init_vrc5477_ac97(void)
next reply other threads:[~2003-08-10 15:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-10 15:51 Vinay K Nallamothu [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-08-10 15:39 [PATCH 2.6.0-test3][OSS] nec_vrc5477.c: incorrect use of __devinit Vinay K Nallamothu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-sound-106052885908280@msgid-missing \
--to=vinay-rc@naturesoft.net \
--cc=linux-sound@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.