Message ID | alpine.DEB.2.21.1811301741580.2369@hadrien |
---|---|
State | New |
Headers | show |
Series | regulator: s5m8767: fix odd_ptr_err.cocci warnings | expand |
--- a/drivers/regulator/s5m8767.c +++ b/drivers/regulator/s5m8767.c @@ -608,7 +608,7 @@ static int s5m8767_pmic_dt_parse_pdata(s "s5m8767"); if (IS_ERR(gpiod)) { devres_free(dr); - return PTR_ERR(rdata->ext_control_gpiod); + return PTR_ERR(gpiod); } *dr = gpiod; devres_add(&pdev->dev, dr);