Reset the regulator to NULL when its allocation fails. Change-Id: I6ee732c66c1f94a2d03004d417c263bb5271fbdb Signed-off-by: Umesh Vats <uvats@codeaurora.org>