Re: [PATCH 2/2] regulator: axp20x: Handle regulator_register returning ENODEV

From: Mark Brown
Date: Wed Apr 27 2016 - 10:25:37 EST


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...

Attachment: signature.asc
Description: PGP signature