lkml.org 
[lkml]   [2014]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 10/10] hwmon: vexpress: Use devm helper for hwmon device registration
From
Date
On Wed, 2014-04-30 at 16:27 +0100, Guenter Roeck wrote:
> > I'm not sure I understand the question. The other patch from the series
>
> The code above seems to change from
>
> data->reg = devm_regmap_init_vexpress_config(&pdev->dev);
> if (!data->reg)
> return -ENODEV;
>
> to
>
> data->reg = devm_regmap_init_vexpress_config(&pdev->dev);
> if (IS_ERR(data->reg))
> return PTR_ERR(data->reg);
>
> as part of this patch. This suggests that the return value from
> devm_regmap_init_vexpress_config may have changed from NULL to
> ERR_PTR. Is my understanding wrong ?

No, you've got it right, but it's me making a mistake in patch splitting
- it is supposed to be a part of the first patch. Thanks for spotting
this!

Pawel



\
 
 \ /
  Last update: 2014-04-30 18:21    [W:0.059 / U:1.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site