disp: msm: replace PTR_RET with PTR_ERR_OR_ZERO
Commit fad7c9020948 ("err.h: remove deprecated PTR_RET for good") deprecated PTR_RET. This change updates the msm driver by replacing it with PTR_ERR_OR_ZERO. Change-Id: Ibe8cefd7b9ce27dc63886eb3861aab5fc8ba268a Signed-off-by: Samantha Tran <samtran@codeaurora.org> Signed-off-by: Nilaan Gunabalachandran <ngunabal@codeaurora.org>
This commit is contained in:

committed by
Nilaan Gunabalachandran

parent
e199ecbfb8
commit
df3f51f9c4
@@ -208,7 +208,7 @@ static int dsi_phy_supplies_init(struct platform_device *pdev,
|
||||
regs = &phy->pwr_info.digital;
|
||||
for (i = 0; i < regs->count; i++) {
|
||||
vreg = devm_regulator_get(&pdev->dev, regs->vregs[i].vreg_name);
|
||||
rc = PTR_RET(vreg);
|
||||
rc = PTR_ERR_OR_ZERO(vreg);
|
||||
if (rc) {
|
||||
DSI_PHY_ERR(phy, "failed to get %s regulator\n",
|
||||
regs->vregs[i].vreg_name);
|
||||
@@ -220,7 +220,7 @@ static int dsi_phy_supplies_init(struct platform_device *pdev,
|
||||
regs = &phy->pwr_info.phy_pwr;
|
||||
for (i = 0; i < regs->count; i++) {
|
||||
vreg = devm_regulator_get(&pdev->dev, regs->vregs[i].vreg_name);
|
||||
rc = PTR_RET(vreg);
|
||||
rc = PTR_ERR_OR_ZERO(vreg);
|
||||
if (rc) {
|
||||
DSI_PHY_ERR(phy, "failed to get %s regulator\n",
|
||||
regs->vregs[i].vreg_name);
|
||||
|
Reference in New Issue
Block a user