diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-05-15 11:50:23 +0200 |
---|---|---|
committer | Neil Armstrong <narmstrong@baylibre.com> | 2021-05-18 13:16:37 +0200 |
commit | 69fbffcc305e83c30ae219fdf814fa07a50fa213 (patch) | |
tree | c070a5ddc9d7b37912ee701957aa7b32fd427004 /drivers/gpu/drm/bridge/ite-it66121.c | |
parent | drm/virtio: free virtqueues on probe failure (diff) | |
download | linux-69fbffcc305e83c30ae219fdf814fa07a50fa213.tar.xz linux-69fbffcc305e83c30ae219fdf814fa07a50fa213.zip |
drm: bridge: it66121: fix an error code in it66121_probe()
This code is passing the wrong variable to PTR_ERR() so it doesn't
return the correct error code.
Fixes: 988156dc2fc9 ("drm: bridge: add it66121 driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/YJ+ZX3BdKPAN0pUZ@mwanda
Diffstat (limited to 'drivers/gpu/drm/bridge/ite-it66121.c')
-rw-r--r-- | drivers/gpu/drm/bridge/ite-it66121.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/bridge/ite-it66121.c b/drivers/gpu/drm/bridge/ite-it66121.c index d8a60691fd32..6980c9801d0d 100644 --- a/drivers/gpu/drm/bridge/ite-it66121.c +++ b/drivers/gpu/drm/bridge/ite-it66121.c @@ -943,7 +943,7 @@ static int it66121_probe(struct i2c_client *client, ctx->regmap = devm_regmap_init_i2c(client, &it66121_regmap_config); if (IS_ERR(ctx->regmap)) { ite66121_power_off(ctx); - return PTR_ERR(ctx); + return PTR_ERR(ctx->regmap); } regmap_read(ctx->regmap, IT66121_VENDOR_ID0_REG, &vendor_ids[0]); |