Commit 3f68b03a authored by Stanislaw Gruszka's avatar Stanislaw Gruszka
parent 0a9cd792
...@@ -551,9 +551,7 @@ static int ivpu_dev_init(struct ivpu_device *vdev) ...@@ -551,9 +551,7 @@ static int ivpu_dev_init(struct ivpu_device *vdev)
if (ret) if (ret)
goto err_fw_fini; goto err_fw_fini;
ret = ivpu_pm_init(vdev); ivpu_pm_init(vdev);
if (ret)
goto err_ipc_fini;
ret = ivpu_job_done_thread_init(vdev); ret = ivpu_job_done_thread_init(vdev);
if (ret) if (ret)
......
...@@ -282,7 +282,7 @@ void ivpu_pm_reset_done_cb(struct pci_dev *pdev) ...@@ -282,7 +282,7 @@ void ivpu_pm_reset_done_cb(struct pci_dev *pdev)
pm_runtime_put_autosuspend(vdev->drm.dev); pm_runtime_put_autosuspend(vdev->drm.dev);
} }
int ivpu_pm_init(struct ivpu_device *vdev) void ivpu_pm_init(struct ivpu_device *vdev)
{ {
struct device *dev = vdev->drm.dev; struct device *dev = vdev->drm.dev;
struct ivpu_pm_info *pm = vdev->pm; struct ivpu_pm_info *pm = vdev->pm;
...@@ -303,8 +303,6 @@ int ivpu_pm_init(struct ivpu_device *vdev) ...@@ -303,8 +303,6 @@ int ivpu_pm_init(struct ivpu_device *vdev)
pm_runtime_set_autosuspend_delay(dev, delay); pm_runtime_set_autosuspend_delay(dev, delay);
ivpu_dbg(vdev, PM, "Autosuspend delay = %d\n", delay); ivpu_dbg(vdev, PM, "Autosuspend delay = %d\n", delay);
return 0;
} }
void ivpu_pm_cancel_recovery(struct ivpu_device *vdev) void ivpu_pm_cancel_recovery(struct ivpu_device *vdev)
......
...@@ -19,7 +19,7 @@ struct ivpu_pm_info { ...@@ -19,7 +19,7 @@ struct ivpu_pm_info {
u32 suspend_reschedule_counter; u32 suspend_reschedule_counter;
}; };
int ivpu_pm_init(struct ivpu_device *vdev); void ivpu_pm_init(struct ivpu_device *vdev);
void ivpu_pm_enable(struct ivpu_device *vdev); void ivpu_pm_enable(struct ivpu_device *vdev);
void ivpu_pm_disable(struct ivpu_device *vdev); void ivpu_pm_disable(struct ivpu_device *vdev);
void ivpu_pm_cancel_recovery(struct ivpu_device *vdev); void ivpu_pm_cancel_recovery(struct ivpu_device *vdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment