[PATCH v2 4/5] regulator: max14577: Add regulator driver for Maxim 14577
Mark Brown
broonie at kernel.org
Wed Nov 20 10:35:07 EST 2013
On Wed, Nov 20, 2013 at 03:12:11PM +0100, Krzysztof Kozlowski wrote:
> + size = sizeof(struct regulator_dev *) * pdata->num_regulators;
> + info->regulators = devm_kzalloc(&pdev->dev, size, GFP_KERNEL);
> + if (!info->regulators) {
> + dev_err(&pdev->dev, "Cannot allocate memory for regulators\n");
> + return -ENOMEM;
> + }
The set of regulators in the silicon doesn't vary - you should
unconditionally register all the regulators.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131120/2956c353/attachment-0001.sig>
More information about the linux-arm-kernel
mailing list