mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Richard Knutsson <ricknu-0@student.ltu.se>
To: linux-kernel@vger.kernel.org
Cc: Richard Knutsson <ricknu-0@student.ltu.se>
Subject: [PATCH 2/6] drivers/block: Replace pci_module_init() with pci_register_driver()
Date: Wed, 30 Nov 2005 00:59:34 +0100 (MET)	[thread overview]
Message-ID: <20051130000445.1009.27295.sendpatchset@thinktank.campus.ltu.se> (raw)
In-Reply-To: <20051130000425.1009.94647.sendpatchset@thinktank.campus.ltu.se>

From: Richard Knutsson <ricknu-0@student.ltu.se>

Replace obsolete pci_module_init() with pci_register_driver().

Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se>

---

 block/DAC960.c                     |    2 +-
 block/cciss.c                      |    2 +-
 block/sx8.c                        |    2 +-
 block/umem.c                       |    2 +-
 media/radio/radio-gemtek-pci.c     |    2 +-
 media/radio/radio-maxiradio.c      |    2 +-
 media/video/bttv-driver.c          |    2 +-
 media/video/saa7134/saa7134-core.c |    2 +-
 8 files changed, 8 insertions(+), 8 deletions(-)

diff -Narup a/drivers/block/cciss.c b/drivers/block/cciss.c
--- a/drivers/block/cciss.c	2005-11-29 11:08:50.000000000 +0100
+++ b/drivers/block/cciss.c	2005-11-29 16:42:41.000000000 +0100
@@ -3275,7 +3275,7 @@ static int __init cciss_init(void)
 	printk(KERN_INFO DRIVER_NAME "\n");
 
 	/* Register for our PCI devices */
-	return pci_module_init(&cciss_pci_driver);
+	return pci_register_driver(&cciss_pci_driver);
 }
 
 static void __exit cciss_cleanup(void)
diff -Narup a/drivers/block/DAC960.c b/drivers/block/DAC960.c
--- a/drivers/block/DAC960.c	2005-11-29 11:08:50.000000000 +0100
+++ b/drivers/block/DAC960.c	2005-11-29 16:37:11.000000000 +0100
@@ -7186,7 +7186,7 @@ static int DAC960_init_module(void)
 {
 	int ret;
 
-	ret =  pci_module_init(&DAC960_pci_driver);
+	ret =  pci_register_driver(&DAC960_pci_driver);
 #ifdef DAC960_GAM_MINOR
 	if (!ret)
 		DAC960_gam_init();
diff -Narup a/drivers/block/sx8.c b/drivers/block/sx8.c
--- a/drivers/block/sx8.c	2005-11-29 11:08:50.000000000 +0100
+++ b/drivers/block/sx8.c	2005-11-29 16:43:57.000000000 +0100
@@ -1774,7 +1774,7 @@ static void carm_remove_one (struct pci_
 
 static int __init carm_init(void)
 {
-	return pci_module_init(&carm_driver);
+	return pci_register_driver(&carm_driver);
 }
 
 static void __exit carm_exit(void)
diff -Narup a/drivers/block/umem.c b/drivers/block/umem.c
--- a/drivers/block/umem.c	2005-11-29 11:04:53.000000000 +0100
+++ b/drivers/block/umem.c	2005-11-29 16:44:47.000000000 +0100
@@ -1185,7 +1185,7 @@ static int __init mm_init(void)
 
 	printk(KERN_INFO DRIVER_VERSION " : " DRIVER_DESC "\n");
 
-	retval = pci_module_init(&mm_pci_driver);
+	retval = pci_register_driver(&mm_pci_driver);
 	if (retval)
 		return -ENOMEM;
 
diff -Narup a/drivers/media/radio/radio-gemtek-pci.c b/drivers/media/radio/radio-gemtek-pci.c
--- a/drivers/media/radio/radio-gemtek-pci.c	2005-11-29 11:05:11.000000000 +0100
+++ b/drivers/media/radio/radio-gemtek-pci.c	2005-11-29 16:51:44.000000000 +0100
@@ -394,7 +394,7 @@ static struct pci_driver gemtek_pci_driv
 
 static int __init gemtek_pci_init_module( void )
 {
-	return pci_module_init( &gemtek_pci_driver );
+	return pci_register_driver( &gemtek_pci_driver );
 }
 
 static void __exit gemtek_pci_cleanup_module( void )
diff -Narup a/drivers/media/radio/radio-maxiradio.c b/drivers/media/radio/radio-maxiradio.c
--- a/drivers/media/radio/radio-maxiradio.c	2005-11-29 11:05:11.000000000 +0100
+++ b/drivers/media/radio/radio-maxiradio.c	2005-11-29 16:52:16.000000000 +0100
@@ -337,7 +337,7 @@ static struct pci_driver maxiradio_drive
 
 static int __init maxiradio_radio_init(void)
 {
-	return pci_module_init(&maxiradio_driver);
+	return pci_register_driver(&maxiradio_driver);
 }
 
 static void __exit maxiradio_radio_exit(void)
diff -Narup a/drivers/media/video/bttv-driver.c b/drivers/media/video/bttv-driver.c
--- a/drivers/media/video/bttv-driver.c	2005-11-29 11:08:53.000000000 +0100
+++ b/drivers/media/video/bttv-driver.c	2005-11-29 16:48:41.000000000 +0100
@@ -4220,7 +4220,7 @@ static int bttv_init_module(void)
 	bttv_check_chipset();
 
 	bus_register(&bttv_sub_bus_type);
-	return pci_module_init(&bttv_pci_driver);
+	return pci_register_driver(&bttv_pci_driver);
 }
 
 static void bttv_cleanup_module(void)
diff -Narup a/drivers/media/video/saa7134/saa7134-core.c b/drivers/media/video/saa7134/saa7134-core.c
--- a/drivers/media/video/saa7134/saa7134-core.c	2005-11-29 11:08:53.000000000 +0100
+++ b/drivers/media/video/saa7134/saa7134-core.c	2005-11-29 16:50:37.000000000 +0100
@@ -1144,7 +1144,7 @@ static int saa7134_init(void)
 	printk(KERN_INFO "saa7130/34: snapshot date %04d-%02d-%02d\n",
 	       SNAPSHOT/10000, (SNAPSHOT/100)%100, SNAPSHOT%100);
 #endif
-	return pci_module_init(&saa7134_pci_driver);
+	return pci_register_driver(&saa7134_pci_driver);
 }
 
 static void saa7134_fini(void)

  reply	other threads:[~2005-11-29 23:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-29 23:59 [PATCH 1/6] arch: " Richard Knutsson
2005-11-29 23:59 ` Richard Knutsson [this message]
2005-11-29 23:59 ` [PATCH 3/6] drivers/net: " Richard Knutsson
2005-11-30  0:00 ` [PATCH 4/6] drivers/scsi: " Richard Knutsson
2005-11-30  0:00 ` [PATCH 5/6] drivers/*rest*: " Richard Knutsson
2005-11-30  0:00 ` [PATCH 6/6] pci.h: Delete Replace pci_module_init() Richard Knutsson

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=20051130000445.1009.27295.sendpatchset@thinktank.campus.ltu.se \
    --to=ricknu-0@student.ltu.se \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome