aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aic7xxx
diff options
context:
space:
mode:
authorHenrik Kretzschmar <henne@nachtwindheim.de>2006-09-25 19:58:58 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-09-26 14:35:32 -0400
commitdcbccbde00b85b4d4a1c206b419e7a3d2ab2b1cd (patch)
tree5abc8a69a32a4a11da0bbbda60d9b18e0300cbfb /drivers/scsi/aic7xxx
parent45223fd77c2b39d05dd7f1aaabf614abb1770bbe (diff)
[SCSI] pci_module_init conversion in scsi subsystem
Converts pci_module_init() to pci_register_driver() in the scsi subsys on 23 drivers which only return the value of pci_module_init(). Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/aic7xxx')
-rw-r--r--drivers/scsi/aic7xxx/aic79xx_osm_pci.c2
-rw-r--r--drivers/scsi/aic7xxx/aic7xxx_osm_pci.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/aic7xxx/aic79xx_osm_pci.c b/drivers/scsi/aic7xxx/aic79xx_osm_pci.c
index 50a41eda580e..4b5354201807 100644
--- a/drivers/scsi/aic7xxx/aic79xx_osm_pci.c
+++ b/drivers/scsi/aic7xxx/aic79xx_osm_pci.c
@@ -198,7 +198,7 @@ ahd_linux_pci_dev_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
198int 198int
199ahd_linux_pci_init(void) 199ahd_linux_pci_init(void)
200{ 200{
201 return (pci_module_init(&aic79xx_pci_driver)); 201 return pci_register_driver(&aic79xx_pci_driver);
202} 202}
203 203
204void 204void
diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c b/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
index 7e42f07a27f3..d20ca514e9f3 100644
--- a/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
+++ b/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
@@ -246,8 +246,7 @@ ahc_linux_pci_dev_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
246int 246int
247ahc_linux_pci_init(void) 247ahc_linux_pci_init(void)
248{ 248{
249 /* Translate error or zero return into zero or one */ 249 return pci_register_driver(&aic7xxx_pci_driver);
250 return pci_module_init(&aic7xxx_pci_driver) ? 0 : 1;
251} 250}
252 251
253void 252void