Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+2 -2
+2 -2
drivers/gpu/drm/imagination/pvr_power.h
··· 30 30 return pm_runtime_resume_and_get(drm_dev->dev); 31 31 } 32 32 33 - static __always_inline int 33 + static __always_inline void 34 34 pvr_power_put(struct pvr_device *pvr_dev) 35 35 { 36 36 struct drm_device *drm_dev = from_pvr_device(pvr_dev); 37 37 38 - return pm_runtime_put(drm_dev->dev); 38 + pm_runtime_put(drm_dev->dev); 39 39 } 40 40 41 41 int pvr_power_domains_init(struct pvr_device *pvr_dev);