accel/ivpu: Remove unused ivpu_rpm_get_if_active()
authorJacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Tue, 11 Jun 2024 12:04:32 +0000 (14:04 +0200)
committerJacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Fri, 14 Jun 2024 07:15:28 +0000 (09:15 +0200)
This is now dead code and has to be removed.

Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Reviewed-by: Wachowski, Karol <karol.wachowski@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240611120433.1012423-16-jacek.lawrynowicz@linux.intel.com
drivers/accel/ivpu/ivpu_pm.c
drivers/accel/ivpu/ivpu_pm.h

index e7aed16..59d3170 100644 (file)
@@ -300,16 +300,6 @@ int ivpu_rpm_get(struct ivpu_device *vdev)
        return ret;
 }
 
-int ivpu_rpm_get_if_active(struct ivpu_device *vdev)
-{
-       int ret;
-
-       ret = pm_runtime_get_if_in_use(vdev->drm.dev);
-       drm_WARN_ON(&vdev->drm, ret < 0);
-
-       return ret;
-}
-
 void ivpu_rpm_put(struct ivpu_device *vdev)
 {
        pm_runtime_mark_last_busy(vdev->drm.dev);
index c08a3dd..b70efe6 100644 (file)
@@ -36,7 +36,6 @@ void ivpu_pm_reset_prepare_cb(struct pci_dev *pdev);
 void ivpu_pm_reset_done_cb(struct pci_dev *pdev);
 
 int __must_check ivpu_rpm_get(struct ivpu_device *vdev);
-int __must_check ivpu_rpm_get_if_active(struct ivpu_device *vdev);
 void ivpu_rpm_put(struct ivpu_device *vdev);
 
 void ivpu_pm_trigger_recovery(struct ivpu_device *vdev, const char *reason);