Skip to content

Commit 7a73801

Browse files
committed
pmdomain: imx: gpcv2: Discard pm_runtime_put() return value
Passing pm_runtime_put() return value to the callers is not particularly useful. Returning an error code from pm_runtime_put() merely means that it has not queued up a work item to check whether or not the device can be suspended and there are many perfectly valid situations in which that can happen, like after writing "on" to the devices' runtime PM "control" attribute in sysfs for one example. Accordingly, update imx_pgc_domain_suspend() to simply discard the return value of pm_runtime_put() and always return success to the caller. 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> Acked-by: Peng Fan <peng.fan@nxp.com> Acked-by: Ulf Hansson <ulf.hansson@linaro.org> Link: https://patch.msgid.link/15658107.tv2OnDr8pf@rafael.j.wysocki
1 parent 6de23f8 commit 7a73801

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/pmdomain/imx/gpcv2.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,9 @@ static int imx_pgc_domain_suspend(struct device *dev)
14161416

14171417
static int imx_pgc_domain_resume(struct device *dev)
14181418
{
1419-
return pm_runtime_put(dev);
1419+
pm_runtime_put(dev);
1420+
1421+
return 0;
14201422
}
14211423
#endif
14221424

0 commit comments

Comments
 (0)