summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2025-12-22 21:18:46 +0100
committerVinod Koul <vkoul@kernel.org>2025-12-23 23:11:03 +0530
commit8bb108e4f6747dcea590710c4b6f95eebf4a04d6 (patch)
tree44b4f9133f99238c8153899e6b41437ac4e1ff0b
parent8a203b0571d0a28e227dff7ab81e64cd7aa18e17 (diff)
downloadlinux-next-8bb108e4f6747dcea590710c4b6f95eebf4a04d6.tar.gz
linux-next-8bb108e4f6747dcea590710c4b6f95eebf4a04d6.zip
phy: freescale: Discard pm_runtime_put() return value
Printing error messages on pm_runtime_put() returning negative values 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 mixel_lvds_phy_reset() to simply discard the return value of pm_runtime_put(). 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> Link: https://patch.msgid.link/2012926.taCxCBeP46@rafael.j.wysocki Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r--drivers/phy/freescale/phy-fsl-imx8qm-lvds-phy.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/phy/freescale/phy-fsl-imx8qm-lvds-phy.c b/drivers/phy/freescale/phy-fsl-imx8qm-lvds-phy.c
index 7aef2f59e8eb..ece357443521 100644
--- a/drivers/phy/freescale/phy-fsl-imx8qm-lvds-phy.c
+++ b/drivers/phy/freescale/phy-fsl-imx8qm-lvds-phy.c
@@ -286,11 +286,9 @@ static int mixel_lvds_phy_reset(struct device *dev)
regmap_write(priv->regmap, PHY_CTRL, CTRL_RESET_VAL);
- ret = pm_runtime_put(dev);
- if (ret < 0)
- dev_err(dev, "failed to put PM runtime: %d\n", ret);
+ pm_runtime_put(dev);
- return ret;
+ return 0;
}
static struct phy *mixel_lvds_phy_xlate(struct device *dev,