Re: [PATCH] regulator: Fix rc5t583_regulator_probe error handling

From: Mark Brown
Date: Wed Apr 04 2012 - 17:14:20 EST


On Wed, Apr 04, 2012 at 07:52:35PM +0800, Axel Lin wrote:
> 1. regulator_register returns ERR_PTR on error, thus use IS_ERR to check the
> return value.
> 2. Fix off-by-one for unregistering the registered regulator.
> Current code does not unregister regs[0].rdev in clean_exit.

Applied, thanks.

Attachment: signature.asc
Description: Digital signature