Message ID | Yk4rqrdKDmrZPHGo@a687d38df4c1 (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Input: fix odd_ptr_err.cocci warnings | expand |
--- a/drivers/input/misc/isa1200.c +++ b/drivers/input/misc/isa1200.c @@ -325,12 +325,12 @@ static int isa1200_probe(struct i2c_clie isa->hen = devm_gpiod_get(dev, "hen", GPIOD_OUT_LOW); if (IS_ERR(isa->hen)) { - ret = PTR_ERR(isa->map); + ret = PTR_ERR(isa->hen); return dev_err_probe(dev, ret, "failed to get HEN GPIO\n"); } isa->len = devm_gpiod_get(dev, "len", GPIOD_OUT_LOW); if (IS_ERR(isa->hen)) { - ret = PTR_ERR(isa->map); + ret = PTR_ERR(isa->hen); return dev_err_probe(dev, ret, "failed to get LEN GPIO\n"); }