drm/bridge/tc358775: Fix for PTR_ERR
passing zero to 'PTR_ERR' Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Vinay Simha BN <simhavcs@gmail.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/1597557042-5154-1-git-send-email-simhavcs@gmail.com
This commit is contained in:
parent
fc26a3758b
commit
7f7fb53f62
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue