[lkml]   [2014]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH V2 11/17] i2c: nomadik: Convert to devm functions
On 15 February 2014 16:03, Wolfram Sang <> wrote:
> On Thu, Feb 13, 2014 at 03:09:02PM +0100, Ulf Hansson wrote:
>> Use devm_* functions to simplify code and error handling.
>> Cc: Alessandro Rubini <>
>> Cc: Linus Walleij <>
>> Cc: Wolfram Sang <>
>> Signed-off-by: Ulf Hansson <>
>> ---
>> Changes in v2:
>> Rebased on top of latest i2c-nomadik branch.
> Since this depends on Linus' patch already, I think it would be cleaner
> if I pick this kinda unrelated (but wanted) devm patch, and ack the
> PM stuff. If this for some reason makes things more complicated, I can
> also simply ack this one.

I think we will end up having merge conflicts, especially for the
changes in the probe function if we decide to split it.

Would a way forward be to let you carry all the patches through your
tree? I believe all but patch 17 can be safely merged. It is only this
one that depends on the changes in the amba bus, so we can put this
one on hold for a while.

Another option would be if you drop Linus' patch from you branch and
let him collect all the patches in a pull request instead?

I happy with whatever we thinks are easiest. :-)

>> - dev->virtbase = ioremap(adev->res.start, resource_size(&adev->res));
>> + dev->virtbase = devm_ioremap(&adev->dev, adev->res.start,
>> + resource_size(&adev->res));
>> if (!dev->virtbase) {
>> ret = -ENOMEM;
> IS_ERR()!

Will fix in a v2!



Kind regards
Ulf Hansson

 \ /
  Last update: 2014-02-16 15:21    [W:0.049 / U:0.708 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site