From: Richard Knutsson <ricknu-0@student.ltu.se>
To: Andrew Morton <akpm@osdl.org>
Cc: Linux-Kernel mailing list <linux-kernel@vger.kernel.org>,
Greg KH <greg@kroah.com>
Subject: [PATCH 2.6.15-rc5-mm1] drivers: Replace pci_module_init() with pci_register_driver() (-mm only)
Date: Tue, 06 Dec 2005 05:13:55 +0100 [thread overview]
Message-ID: <43951003.1070501@student.ltu.se> (raw)
From: Richard Knutsson <ricknu-0@student.ltu.se>
Replace obsolete pci_module_init() with pci_register_driver().
This patch is for -mm only. There is (for now) no drivers/hwmon/vt8231.c
file and drivers/net/sk98lin/skge.c already have pci_register_driver()
instead of pci_module_init() in the linus-tree.
Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se>
---
hwmon/vt8231.c | 2 +-
net/sk98lin/skge.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff -Narup a/drivers/hwmon/vt8231.c b/drivers/hwmon/vt8231.c
--- a/drivers/hwmon/vt8231.c 2005-12-06 03:35:12.000000000 +0100
+++ b/drivers/hwmon/vt8231.c 2005-12-06 03:31:50.000000000 +0100
@@ -842,7 +842,7 @@ static int __devinit vt8231_pci_probe(st
static int __init sm_vt8231_init(void)
{
- return pci_module_init(&vt8231_pci_driver);
+ return pci_register_driver(&vt8231_pci_driver);
}
static void __exit sm_vt8231_exit(void)
diff -Narup a/drivers/net/sk98lin/skge.c b/drivers/net/sk98lin/skge.c
--- a/drivers/net/sk98lin/skge.c 2005-12-06 03:35:17.000000000 +0100
+++ b/drivers/net/sk98lin/skge.c 2005-12-06 03:30:21.000000000 +0100
@@ -5107,7 +5107,7 @@ static struct pci_driver skge_driver = {
static int __init skge_init(void)
{
- return pci_module_init(&skge_driver);
+ return pci_register_driver(&skge_driver);
}
static void __exit skge_exit(void)
reply other threads:[~2005-12-06 4:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=43951003.1070501@student.ltu.se \
--to=ricknu-0@student.ltu.se \
--cc=akpm@osdl.org \
--cc=greg@kroah.com \
--cc=linux-kernel@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.