Messages in this thread | | | Date | Wed, 4 Apr 2012 22:14:15 +0100 | From | Mark Brown <> | Subject | Re: [PATCH] regulator: Fix rc5t583_regulator_probe error handling |
| |
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. [unhandled content-type:application/pgp-signature] | |