Re: [PATCH] regulator: ab3100: Fix regulator register error handling
From: Mark Brown
Date: Fri Apr 26 2013 - 11:34:00 EST
On Fri, Apr 26, 2013 at 09:57:09PM +0800, Axel Lin wrote:
> Ensure to unregister all regulators before return error in probe().
> The regulator register order depends on the regulator ID pass to
> ab3100_regulator_register() function. Thus we need to scan ab3100_regulator_desc
> and find the index of successfully registered regulators, or alternatively just
> call ab3100_regulators_remove() to unregister all registered regulators.
Description: Digital signature