diff options
Diffstat (limited to 'drivers/infiniband/hw/qib/qib_init.c')
-rw-r--r-- | drivers/infiniband/hw/qib/qib_init.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/infiniband/hw/qib/qib_init.c b/drivers/infiniband/hw/qib/qib_init.c index 4443adfcd9ee..ddf066d9abb6 100644 --- a/drivers/infiniband/hw/qib/qib_init.c +++ b/drivers/infiniband/hw/qib/qib_init.c | |||
@@ -1134,9 +1134,8 @@ void qib_disable_after_error(struct qib_devdata *dd) | |||
1134 | *dd->devstatusp |= QIB_STATUS_HWERROR; | 1134 | *dd->devstatusp |= QIB_STATUS_HWERROR; |
1135 | } | 1135 | } |
1136 | 1136 | ||
1137 | static void __devexit qib_remove_one(struct pci_dev *); | 1137 | static void qib_remove_one(struct pci_dev *); |
1138 | static int __devinit qib_init_one(struct pci_dev *, | 1138 | static int qib_init_one(struct pci_dev *, const struct pci_device_id *); |
1139 | const struct pci_device_id *); | ||
1140 | 1139 | ||
1141 | #define DRIVER_LOAD_MSG "QLogic " QIB_DRV_NAME " loaded: " | 1140 | #define DRIVER_LOAD_MSG "QLogic " QIB_DRV_NAME " loaded: " |
1142 | #define PFX QIB_DRV_NAME ": " | 1141 | #define PFX QIB_DRV_NAME ": " |
@@ -1153,7 +1152,7 @@ MODULE_DEVICE_TABLE(pci, qib_pci_tbl); | |||
1153 | struct pci_driver qib_driver = { | 1152 | struct pci_driver qib_driver = { |
1154 | .name = QIB_DRV_NAME, | 1153 | .name = QIB_DRV_NAME, |
1155 | .probe = qib_init_one, | 1154 | .probe = qib_init_one, |
1156 | .remove = __devexit_p(qib_remove_one), | 1155 | .remove = qib_remove_one, |
1157 | .id_table = qib_pci_tbl, | 1156 | .id_table = qib_pci_tbl, |
1158 | .err_handler = &qib_pci_err_handler, | 1157 | .err_handler = &qib_pci_err_handler, |
1159 | }; | 1158 | }; |
@@ -1342,8 +1341,7 @@ static void qib_postinit_cleanup(struct qib_devdata *dd) | |||
1342 | qib_free_devdata(dd); | 1341 | qib_free_devdata(dd); |
1343 | } | 1342 | } |
1344 | 1343 | ||
1345 | static int __devinit qib_init_one(struct pci_dev *pdev, | 1344 | static int qib_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) |
1346 | const struct pci_device_id *ent) | ||
1347 | { | 1345 | { |
1348 | int ret, j, pidx, initfail; | 1346 | int ret, j, pidx, initfail; |
1349 | struct qib_devdata *dd = NULL; | 1347 | struct qib_devdata *dd = NULL; |
@@ -1448,7 +1446,7 @@ bail: | |||
1448 | return ret; | 1446 | return ret; |
1449 | } | 1447 | } |
1450 | 1448 | ||
1451 | static void __devexit qib_remove_one(struct pci_dev *pdev) | 1449 | static void qib_remove_one(struct pci_dev *pdev) |
1452 | { | 1450 | { |
1453 | struct qib_devdata *dd = pci_get_drvdata(pdev); | 1451 | struct qib_devdata *dd = pci_get_drvdata(pdev); |
1454 | int ret; | 1452 | int ret; |