diff options
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_main.c')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_main.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_main.c b/drivers/infiniband/hw/mthca/mthca_main.c index aa12a533ae9e..87897b95666d 100644 --- a/drivers/infiniband/hw/mthca/mthca_main.c +++ b/drivers/infiniband/hw/mthca/mthca_main.c | |||
@@ -130,7 +130,7 @@ static int log_mtts_per_seg = ilog2(MTHCA_MTT_SEG_SIZE / 8); | |||
130 | module_param_named(log_mtts_per_seg, log_mtts_per_seg, int, 0444); | 130 | module_param_named(log_mtts_per_seg, log_mtts_per_seg, int, 0444); |
131 | MODULE_PARM_DESC(log_mtts_per_seg, "Log2 number of MTT entries per segment (1-5)"); | 131 | MODULE_PARM_DESC(log_mtts_per_seg, "Log2 number of MTT entries per segment (1-5)"); |
132 | 132 | ||
133 | static char mthca_version[] __devinitdata = | 133 | static char mthca_version[] = |
134 | DRV_NAME ": Mellanox InfiniBand HCA driver v" | 134 | DRV_NAME ": Mellanox InfiniBand HCA driver v" |
135 | DRV_VERSION " (" DRV_RELDATE ")\n"; | 135 | DRV_VERSION " (" DRV_RELDATE ")\n"; |
136 | 136 | ||
@@ -1139,8 +1139,7 @@ int __mthca_restart_one(struct pci_dev *pdev) | |||
1139 | return __mthca_init_one(pdev, hca_type); | 1139 | return __mthca_init_one(pdev, hca_type); |
1140 | } | 1140 | } |
1141 | 1141 | ||
1142 | static int __devinit mthca_init_one(struct pci_dev *pdev, | 1142 | static int mthca_init_one(struct pci_dev *pdev, const struct pci_device_id *id) |
1143 | const struct pci_device_id *id) | ||
1144 | { | 1143 | { |
1145 | int ret; | 1144 | int ret; |
1146 | 1145 | ||
@@ -1162,7 +1161,7 @@ static int __devinit mthca_init_one(struct pci_dev *pdev, | |||
1162 | return ret; | 1161 | return ret; |
1163 | } | 1162 | } |
1164 | 1163 | ||
1165 | static void __devexit mthca_remove_one(struct pci_dev *pdev) | 1164 | static void mthca_remove_one(struct pci_dev *pdev) |
1166 | { | 1165 | { |
1167 | mutex_lock(&mthca_device_mutex); | 1166 | mutex_lock(&mthca_device_mutex); |
1168 | __mthca_remove_one(pdev); | 1167 | __mthca_remove_one(pdev); |
@@ -1199,7 +1198,7 @@ static struct pci_driver mthca_driver = { | |||
1199 | .name = DRV_NAME, | 1198 | .name = DRV_NAME, |
1200 | .id_table = mthca_pci_table, | 1199 | .id_table = mthca_pci_table, |
1201 | .probe = mthca_init_one, | 1200 | .probe = mthca_init_one, |
1202 | .remove = __devexit_p(mthca_remove_one) | 1201 | .remove = mthca_remove_one, |
1203 | }; | 1202 | }; |
1204 | 1203 | ||
1205 | static void __init __mthca_check_profile_val(const char *name, int *pval, | 1204 | static void __init __mthca_check_profile_val(const char *name, int *pval, |