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

Commit 2668fb9e authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "NFC: Avoid gpio_free for invalid GPIO"

parents e2e1f585 0bf56a42
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1295,7 +1295,7 @@ static int nqx_probe(struct i2c_client *client,
	gpio_free(platform_data->clkreq_gpio);
err_ese_gpio:
	/* optional gpio, not sure was configured in probe */
	if (nqx_dev->ese_gpio > 0)
	if (gpio_is_valid(platform_data->ese_gpio))
		gpio_free(platform_data->ese_gpio);
err_firm_gpio:
	gpio_free(platform_data->firm_gpio);