Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31899
b: refs/heads/master
c: 7ee6139
h: refs/heads/master
i:
  31897: cc038c2
  31895: c5246db
v: v3
  • Loading branch information
Andrew Vasquez authored and James Bottomley committed Jun 26, 2006
1 parent 16b5147 commit fa93c11
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 31 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7d7abc77cc469ff41dde8eea606e1dab88d4ba86
refs/heads/master: 7ee613970947bdf5f722bb01547c97f4fc80fe9f
38 changes: 8 additions & 30 deletions trunk/drivers/scsi/qla2xxx/qla_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,8 @@ qla24xx_disable_intrs(scsi_qla_host_t *ha)
/*
* PCI driver interface
*/
static int qla2x00_probe_one(struct pci_dev *pdev)
static int __devinit
qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
{
int ret = -ENODEV;
device_reg_t __iomem *reg;
Expand Down Expand Up @@ -1650,7 +1651,8 @@ static int qla2x00_probe_one(struct pci_dev *pdev)
return ret;
}

static void qla2x00_remove_one(struct pci_dev *pdev)
static void __devexit
qla2x00_remove_one(struct pci_dev *pdev)
{
scsi_qla_host_t *ha;

Expand Down Expand Up @@ -2644,40 +2646,16 @@ static struct pci_device_id qla2xxx_pci_tbl[] = {
};
MODULE_DEVICE_TABLE(pci, qla2xxx_pci_tbl);

static int __devinit
qla2xxx_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
{
return qla2x00_probe_one(pdev);
}

static void __devexit
qla2xxx_remove_one(struct pci_dev *pdev)
{
qla2x00_remove_one(pdev);
}

static struct pci_driver qla2xxx_pci_driver = {
.name = QLA2XXX_DRIVER_NAME,
.driver = {
.owner = THIS_MODULE,
},
.id_table = qla2xxx_pci_tbl,
.probe = qla2xxx_probe_one,
.remove = __devexit_p(qla2xxx_remove_one),
.probe = qla2x00_probe_one,
.remove = __devexit_p(qla2x00_remove_one),
};

static inline int
qla2x00_pci_module_init(void)
{
return pci_module_init(&qla2xxx_pci_driver);
}

static inline void
qla2x00_pci_module_exit(void)
{
pci_unregister_driver(&qla2xxx_pci_driver);
}

/**
* qla2x00_module_init - Module initialization.
**/
Expand Down Expand Up @@ -2706,7 +2684,7 @@ qla2x00_module_init(void)
return -ENODEV;

printk(KERN_INFO "QLogic Fibre Channel HBA Driver\n");
ret = qla2x00_pci_module_init();
ret = pci_register_driver(&qla2xxx_pci_driver);
if (ret) {
kmem_cache_destroy(srb_cachep);
fc_release_transport(qla2xxx_transport_template);
Expand All @@ -2720,7 +2698,7 @@ qla2x00_module_init(void)
static void __exit
qla2x00_module_exit(void)
{
qla2x00_pci_module_exit();
pci_unregister_driver(&qla2xxx_pci_driver);
qla2x00_release_firmware();
kmem_cache_destroy(srb_cachep);
fc_release_transport(qla2xxx_transport_template);
Expand Down

0 comments on commit fa93c11

Please sign in to comment.