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.