diff options
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/nvlink.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/nvlink.c b/drivers/gpu/nvgpu/common/linux/nvlink.c index eea6eda7..6cf74048 100644 --- a/drivers/gpu/nvgpu/common/linux/nvlink.c +++ b/drivers/gpu/nvgpu/common/linux/nvlink.c | |||
@@ -468,8 +468,6 @@ u32 nvgpu_nvlink_probe(struct gk20a *g) | |||
468 | 468 | ||
469 | g->nvlink.topology_connected_links = BIT(phys_link_id); | 469 | g->nvlink.topology_connected_links = BIT(phys_link_id); |
470 | 470 | ||
471 | mutex_init(&ndev->init_state_mutex); | ||
472 | |||
473 | /* Check that we are in dGPU mode */ | 471 | /* Check that we are in dGPU mode */ |
474 | if (ndev->device_id != NVLINK_ENDPT_GV100) { | 472 | if (ndev->device_id != NVLINK_ENDPT_GV100) { |
475 | nvgpu_err(g, "Local nvlink device is not dGPU"); | 473 | nvgpu_err(g, "Local nvlink device is not dGPU"); |
@@ -477,12 +475,6 @@ u32 nvgpu_nvlink_probe(struct gk20a *g) | |||
477 | goto free_nvlink; | 475 | goto free_nvlink; |
478 | } | 476 | } |
479 | 477 | ||
480 | err = nvlink_set_init_state(ndev, NVLINK_DEV_OFF); | ||
481 | if (err) { | ||
482 | nvgpu_err(g, "Error initalizing device state to OFF"); | ||
483 | goto free_nvlink; | ||
484 | } | ||
485 | |||
486 | /* Fill in device struct */ | 478 | /* Fill in device struct */ |
487 | ndev->dev_ops.dev_early_init = nvgpu_nvlink_early_init; | 479 | ndev->dev_ops.dev_early_init = nvgpu_nvlink_early_init; |
488 | ndev->dev_ops.dev_interface_init = nvgpu_nvlink_interface_init; | 480 | ndev->dev_ops.dev_interface_init = nvgpu_nvlink_interface_init; |