aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mthca/mthca_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_main.c')
-rw-r--r--drivers/infiniband/hw/mthca/mthca_main.c9
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);
130module_param_named(log_mtts_per_seg, log_mtts_per_seg, int, 0444); 130module_param_named(log_mtts_per_seg, log_mtts_per_seg, int, 0444);
131MODULE_PARM_DESC(log_mtts_per_seg, "Log2 number of MTT entries per segment (1-5)"); 131MODULE_PARM_DESC(log_mtts_per_seg, "Log2 number of MTT entries per segment (1-5)");
132 132
133static char mthca_version[] __devinitdata = 133static 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
1142static int __devinit mthca_init_one(struct pci_dev *pdev, 1142static 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
1165static void __devexit mthca_remove_one(struct pci_dev *pdev) 1164static 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
1205static void __init __mthca_check_profile_val(const char *name, int *pval, 1204static void __init __mthca_check_profile_val(const char *name, int *pval,