Re: [PATCH v3 4/5] i2c: pca-platform: use device managed allocations

From: Wolfram Sang
Date: Tue Jun 27 2017 - 15:56:04 EST


On Mon, Jun 26, 2017 at 12:44:33PM +1200, Chris Packham wrote:
> Switch to using the devm_ APIs and remove the now unnecessary error
> handling and most of the device removal code.
>
> Signed-off-by: Chris Packham <chris.packham@xxxxxxxxxxxxxxxxxxx>

And "reverted" the previous fix here:

- if (IS_ERR(i2c->gpio)) {
- ret = PTR_ERR(i2c->gpio);
- goto e_reqirq;
- }
+ if (IS_ERR(i2c->gpio))
+ return PTR_ERR(i2c->gpio);

Applied to for-next, thanks!

Attachment: signature.asc
Description: PGP signature