Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67b3bfd0 authored by Wei Yongjun's avatar Wei Yongjun Committed by Dmitry Torokhov
Browse files

Input: as5011 - fix error return code in as5011_probe()



Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent ef0aca7f
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -288,6 +288,7 @@ static int as5011_probe(struct i2c_client *client,
	if (irq < 0) {
	if (irq < 0) {
		dev_err(&client->dev,
		dev_err(&client->dev,
			"Failed to get irq number for button gpio\n");
			"Failed to get irq number for button gpio\n");
		error = irq;
		goto err_free_button_gpio;
		goto err_free_button_gpio;
	}
	}