Message ID | 1597557042-5154-1-git-send-email-simhavcs@gmail.com |
---|---|
State | Accepted |
Commit | 7f7fb53f62cb1602932d770b043d2aed5bd9775d |
Headers | show |
Series | drm/bridge/tc358775: Fix for PTR_ERR | expand |
On Sun, Aug 16, 2020 at 11:20:41AM +0530, Vinay Simha BN wrote: > passing zero to 'PTR_ERR' > > Reported-by: kernel test robot <lkp@intel.com> > Signed-off-by: Vinay Simha BN <simhavcs@gmail.com> Applied to drm-misc-next - thanks. Sam > --- > drivers/gpu/drm/bridge/tc358775.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/bridge/tc358775.c b/drivers/gpu/drm/bridge/tc358775.c > index 7da15cd..d951cdc 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; > } > -- > 2.7.4 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
Thanks Sam. On Sun, Aug 23, 2020 at 8:35 PM Sam Ravnborg <sam@ravnborg.org> wrote: > > On Sun, Aug 16, 2020 at 11:20:41AM +0530, Vinay Simha BN wrote: > > passing zero to 'PTR_ERR' > > > > Reported-by: kernel test robot <lkp@intel.com> > > Signed-off-by: Vinay Simha BN <simhavcs@gmail.com> > > Applied to drm-misc-next - thanks. > > Sam > > > --- > > drivers/gpu/drm/bridge/tc358775.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/gpu/drm/bridge/tc358775.c b/drivers/gpu/drm/bridge/tc358775.c > > index 7da15cd..d951cdc 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; > > } > > -- > > 2.7.4 > > > > _______________________________________________ > > dri-devel mailing list > > dri-devel@lists.freedesktop.org > > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- regards, vinaysimha _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
diff --git a/drivers/gpu/drm/bridge/tc358775.c b/drivers/gpu/drm/bridge/tc358775.c index 7da15cd..d951cdc 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; }
passing zero to 'PTR_ERR' Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Vinay Simha BN <simhavcs@gmail.com> --- drivers/gpu/drm/bridge/tc358775.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel