* [PATCH 2.6.15-rc5-mm1] drivers: Replace pci_module_init() with pci_register_driver() (-mm only)
@ 2005-12-06 4:13 Richard Knutsson
0 siblings, 0 replies; only message in thread
From: Richard Knutsson @ 2005-12-06 4:13 UTC (permalink / raw)
To: Andrew Morton; +Cc: Linux-Kernel mailing list, Greg KH
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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-12-06 4:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-06 4:13 [PATCH 2.6.15-rc5-mm1] drivers: Replace pci_module_init() with pci_register_driver() (-mm only) Richard Knutsson
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.