Skip to contentSkip to conversation

drm/bridge/tc358775: Fix for PTR_ERR

PATCH Applied Vinay Simha BN 2 participants 3 messages Aug 16, 2020 – Aug 23, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/bridge/tc358775: Fix for PTR_ERR

passing zero to 'PTR_ERR'

---
 drivers/gpu/drm/bridge/tc358775.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/bridge/tc358775.c +1 -1
index 7da15cd..d951cdc 100644
@@ -684,7 +684,7 @@ static int tc_probe(struct i2c_client *client, const struct i2c_device_id *id)
 
 	tc->vdd = devm_regulator_get(dev, "vdd-supply");
 	if (IS_ERR(tc->vdd)) {
-		ret = PTR_ERR(tc->vddio);
+		ret = PTR_ERR(tc->vdd);
 		dev_err(dev, "vdd-supply not found\n");
 		return ret;
 	}
Signature · 1 line
2.7.4
Applied
#1 lore raw
Quoted 4 lines · Vinay Simha BN

passing zero to 'PTR_ERR'

Applied to drm-misc-next - thanks.

Sam

Quoted 24 lines
---
 drivers/gpu/drm/bridge/tc358775.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/bridge/tc358775.c +1 -1
index 7da15cd..d951cdc 100644
@@ -684,7 +684,7 @@ static int tc_probe(struct i2c_client *client, const struct i2c_device_id *id)
 
 	tc->vdd = devm_regulator_get(dev, "vdd-supply");
 	if (IS_ERR(tc->vdd)) {
-		ret = PTR_ERR(tc->vddio);
+		ret = PTR_ERR(tc->vdd);
 		dev_err(dev, "vdd-supply not found\n");
 		return ret;
 	}
Signature · 6 lines
2.7.4

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw

Thanks Sam.

Quoted 35 lines · Sam Ravnborg
Quoted 4 lines · Vinay Simha BN

passing zero to 'PTR_ERR'

Applied to drm-misc-next - thanks.

Sam

Quoted 24 lines
---
 drivers/gpu/drm/bridge/tc358775.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/bridge/tc358775.c +1 -2
index 7da15cd..d951cdc 100644
@@ -684,7 +684,7 @@ static int tc_probe(struct i2c_client *client, const struct i2c_device_id *id)
 
      tc->vdd = devm_regulator_get(dev, "vdd-supply");
      if (IS_ERR(tc->vdd)) {
-             ret = PTR_ERR(tc->vddio);
+             ret = PTR_ERR(tc->vdd);
              dev_err(dev, "vdd-supply not found\n");
              return ret;
      }
--

2.7.4

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Signature · 2 lines
regards,
vinaysimha