Re: [PATCH] regulator: Fix rc5t583_regulator_probe error handling
From: Laxman Dewangan
Date: Wed Apr 04 2012 - 08:16:44 EST
On Wednesday 04 April 2012 05:22 PM, 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.
Signed-off-by: Axel Lin<axel.lin@xxxxxxxxx>
---
Acked-by: Laxman Dewangan <ldewangan@xxxxxxxxxx>
--
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/