lkml.org 
[lkml]   [2017]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 4/5] i2c: pca-platform: use device managed allocations
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@alliedtelesis.co.nz>

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!

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2017-06-27 21:56    [W:0.235 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site