Re: [PATCH 5/7] regulator: palmas: Use devm_regulator_register

From: Sachin Kamat
Date: Wed Sep 04 2013 - 11:15:07 EST


On 4 September 2013 20:02, Marek Vasut <marex@xxxxxxx> wrote:
> Dear Sachin Kamat,
>
>> devm_* simplifies the code.
>>
>> Signed-off-by: Sachin Kamat <sachin.kamat@xxxxxxxxxx>
>> ---
>> drivers/regulator/palmas-regulator.c | 38
>> @@ -1021,7 +1021,7 @@ static int palmas_regulators_probe(struct
>> platform_device *pdev) id, reg_init);
>> if (ret) {
>> regulator_unregister(pmic->rdev[id]);
>> - goto err_unregister_regulator;
>> + return ret;
>> }
>
> what about this regulator_unregister() above here?

It should have gone too. I will send a fix for that. Thanks for noticing.



--
With warm regards,
Sachin
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/