public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Otavio Salvador <otavio@debian.org>
To: linux-kernel@vger.kernel.org
Cc: Otavio Salvador <otavio@debian.org>
Subject: [PATCH 8/11] BLOCK: replace all uses of pci_module_init with pci_register_driver
Date: Sat, 3 Dec 2005 13:57:10 -0200	[thread overview]
Message-ID: <11336254301475-git-send-email-otavio@debian.org> (raw)
In-Reply-To: <11336254303385-git-send-email-otavio@debian.org>

This patch replace all calls to pci_module_init, that's deprecated and
will be removed in future, with pci_register_driver that should be
the used function now.

Signed-off-by: Otavio Salvador <otavio@debian.org>


---

 drivers/block/DAC960.c |    2 +-
 drivers/block/cciss.c  |    2 +-
 drivers/block/sx8.c    |    2 +-
 drivers/block/umem.c   |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

applies-to: 9ec2473b134892f141036a7e662282e3db3f15bd
c29562485d55591caa1cbf5eebd5ffb758eb6eb8
diff --git a/drivers/block/DAC960.c b/drivers/block/DAC960.c
index 70eaa5c..fe044ee 100644
--- a/drivers/block/DAC960.c
+++ b/drivers/block/DAC960.c
@@ -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 --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index a9e33db..1119a4d 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -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 --git a/drivers/block/sx8.c b/drivers/block/sx8.c
index 1ded3b4..d0cafcf 100644
--- a/drivers/block/sx8.c
+++ b/drivers/block/sx8.c
@@ -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 --git a/drivers/block/umem.c b/drivers/block/umem.c
index 0f48301..f5fd4f5 100644
--- a/drivers/block/umem.c
+++ b/drivers/block/umem.c
@@ -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;
 
---
0.99.9k



  reply	other threads:[~2005-12-03 15:58 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-03 15:57 [PATCH 1/11] OSS: replace all uses of pci_module_init with pci_register_driver Otavio Salvador
2005-12-03 15:57 ` [PATCH 2/11] SCSI: " Otavio Salvador
2005-12-03 15:57   ` [PATCH 3/11] SERIAL: " Otavio Salvador
2005-12-03 15:57     ` [PATCH 4/11] VIDEO: " Otavio Salvador
2005-12-03 15:57       ` [PATCH 5/11] NET: " Otavio Salvador
2005-12-03 15:57         ` [PATCH 6/11] i386: " Otavio Salvador
2005-12-03 15:57           ` [PATCH 7/11] MIPS: " Otavio Salvador
2005-12-03 15:57             ` Otavio Salvador [this message]
2005-12-03 15:57               ` [PATCH 9/11] MEDIA: " Otavio Salvador
2005-12-03 15:57                 ` [PATCH 10/11] PARPORT: " Otavio Salvador
2005-12-03 15:57                   ` [PATCH 11/11] PCMCIA: " Otavio Salvador
2005-12-04 21:05                 ` [PATCH 9/11] MEDIA: " Michael Krufky
2005-12-03 18:56   ` [PATCH 2/11] SCSI: " Richard Knutsson
2005-12-03 16:12 ` [PATCH 1/11] OSS: " Otavio Salvador
2005-12-03 16:24 ` [PATCH] Revert my comment change did in [PATCH] " Otavio Salvador
2005-12-03 20:56 ` [PATCH 1/11] " Greg KH
2005-12-03 21:15   ` Otavio Salvador
2005-12-03 22:27     ` Greg KH

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=11336254301475-git-send-email-otavio@debian.org \
    --to=otavio@debian.org \
    --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