Skip to content

Commit

Permalink
accel/ivpu: Make ivpu_pm_init() void
Browse files Browse the repository at this point in the history
ivpu_pm_init() does not return any error, make it void.

Reviewed-by: Karol Wachowski <[email protected]>
Reviewed-by: Jeffrey Hugo <[email protected]>
Signed-off-by: Stanislaw Gruszka <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
sgruszka committed Sep 4, 2023
1 parent 0a9cd79 commit 3f68b03
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions drivers/accel/ivpu/ivpu_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,7 @@ static int ivpu_dev_init(struct ivpu_device *vdev)
if (ret)
goto err_fw_fini;

ret = ivpu_pm_init(vdev);
if (ret)
goto err_ipc_fini;
ivpu_pm_init(vdev);

ret = ivpu_job_done_thread_init(vdev);
if (ret)
Expand Down
4 changes: 1 addition & 3 deletions drivers/accel/ivpu/ivpu_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ void ivpu_pm_reset_done_cb(struct pci_dev *pdev)
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 ivpu_pm_info *pm = vdev->pm;
Expand All @@ -303,8 +303,6 @@ int ivpu_pm_init(struct ivpu_device *vdev)
pm_runtime_set_autosuspend_delay(dev, delay);

ivpu_dbg(vdev, PM, "Autosuspend delay = %d\n", delay);

return 0;
}

void ivpu_pm_cancel_recovery(struct ivpu_device *vdev)
Expand Down
2 changes: 1 addition & 1 deletion drivers/accel/ivpu/ivpu_pm.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ struct ivpu_pm_info {
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_disable(struct ivpu_device *vdev);
void ivpu_pm_cancel_recovery(struct ivpu_device *vdev);
Expand Down

0 comments on commit 3f68b03

Please sign in to comment.