Skip to content

Commit 88dcab0

Browse files
committed
drm/imagination: Discard pm_runtime_put() return value
The Imagination DRM driver defines pvr_power_put() to pass the return value of pm_runtime_put() to the caller, but then it never uses the return value of pvr_power_put(). Modify pvr_power_put() to discard the pm_runtime_put() return value and change its return type to void. No intentional functional impact. This will facilitate a planned change of the pm_runtime_put() return type to void in the future. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Matt Coster <matt.coster@imgtec.com> Link: https://patch.msgid.link/8642685.T7Z3S40VBb@rafael.j.wysocki
1 parent 1ade6a4 commit 88dcab0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/gpu/drm/imagination/pvr_power.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ pvr_power_get(struct pvr_device *pvr_dev)
3030
return pm_runtime_resume_and_get(drm_dev->dev);
3131
}
3232

33-
static __always_inline int
33+
static __always_inline void
3434
pvr_power_put(struct pvr_device *pvr_dev)
3535
{
3636
struct drm_device *drm_dev = from_pvr_device(pvr_dev);
3737

38-
return pm_runtime_put(drm_dev->dev);
38+
pm_runtime_put(drm_dev->dev);
3939
}
4040

4141
int pvr_power_domains_init(struct pvr_device *pvr_dev);

0 commit comments

Comments
 (0)