lkml.org 
[lkml]   [2016]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] regulator: axp20x: Handle regulator_register returning ENODEV
On Wed, Apr 27, 2016 at 04:03:45PM +0200, Hans de Goede wrote:

> rdev = devm_regulator_register(&pdev->dev, desc, &config);
> if (IS_ERR(rdev)) {
> + if (PTR_ERR(rdev) == -ENODEV)
> + continue;
> +

We would need to do this in every single regulator driver which is a bit
of a warning sign too...
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2016-04-27 16:41    [W:0.232 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site