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

Commit 963f2076 authored by Abhilash Kesavan's avatar Abhilash Kesavan Committed by Wolfram Sang
Browse files

i2c: s3c2410: Fix code to free gpios



Store the requested gpios so that they can be freed on error/removal.

Signed-off-by: default avatarAbhilash Kesavan <a.kesavan@samsung.com>
Signed-off-by: default avatarWolfram Sang <w.sang@pengutronix.de>
parent aedc256d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -806,6 +806,7 @@ static int s3c24xx_i2c_parse_dt_gpio(struct s3c24xx_i2c *i2c)
			dev_err(i2c->dev, "invalid gpio[%d]: %d\n", idx, gpio);
			goto free_gpio;
		}
		i2c->gpios[idx] = gpio;

		ret = gpio_request(gpio, "i2c-bus");
		if (ret) {