[PATCH 2.6.15-rc5-mm1] drivers: Replace pci_module_init() with pci_register_driver() (-mm only)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Richard Knutsson <[email protected]>

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 <[email protected]>

---

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)


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux