|
@@ -1226,6 +1226,9 @@ static int init_one(struct pci_dev *pdev,
|
|
|
|
|
|
pci_set_drvdata(pdev, dev);
|
|
pci_set_drvdata(pdev, dev);
|
|
|
|
|
|
|
|
+ dev->pdev = pdev;
|
|
|
|
+ dev->event = mlx5_core_event;
|
|
|
|
+
|
|
if (prof_sel < 0 || prof_sel >= ARRAY_SIZE(profile)) {
|
|
if (prof_sel < 0 || prof_sel >= ARRAY_SIZE(profile)) {
|
|
mlx5_core_warn(dev,
|
|
mlx5_core_warn(dev,
|
|
"selected profile out of range, selecting default (%d)\n",
|
|
"selected profile out of range, selecting default (%d)\n",
|
|
@@ -1233,8 +1236,6 @@ static int init_one(struct pci_dev *pdev,
|
|
prof_sel = MLX5_DEFAULT_PROF;
|
|
prof_sel = MLX5_DEFAULT_PROF;
|
|
}
|
|
}
|
|
dev->profile = &profile[prof_sel];
|
|
dev->profile = &profile[prof_sel];
|
|
- dev->pdev = pdev;
|
|
|
|
- dev->event = mlx5_core_event;
|
|
|
|
|
|
|
|
INIT_LIST_HEAD(&priv->ctx_list);
|
|
INIT_LIST_HEAD(&priv->ctx_list);
|
|
spin_lock_init(&priv->ctx_lock);
|
|
spin_lock_init(&priv->ctx_lock);
|