diff options
author | Vinay Simha BN <simhavcs@gmail.com> | 2020-08-16 11:20:41 +0530 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2020-08-23 17:04:16 +0200 |
commit | 7f7fb53f62cb1602932d770b043d2aed5bd9775d (patch) | |
tree | a1a0cab26707d614d259fe6cdf16f9470777b476 /drivers/gpu/drm/bridge/tc358775.c | |
parent | fc26a3758b55d930650b71b32844cd60d459eece (diff) | |
download | lwn-7f7fb53f62cb1602932d770b043d2aed5bd9775d.tar.gz lwn-7f7fb53f62cb1602932d770b043d2aed5bd9775d.zip |
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
Diffstat (limited to 'drivers/gpu/drm/bridge/tc358775.c')
-rw-r--r-- | drivers/gpu/drm/bridge/tc358775.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/bridge/tc358775.c b/drivers/gpu/drm/bridge/tc358775.c index 7da15cd71f49..d951cdc58297 100644 --- a/drivers/gpu/drm/bridge/tc358775.c +++ b/drivers/gpu/drm/bridge/tc358775.c @@ -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; } |