aa74c239f30a550f8de6abb433ad991bd parent f503071b03dcac6908fb7e051cfc9c45bea084c0 author Axel Lin 1340179995 +0800 committer Mark Brown 1340187518 +0100 regulator: lp872x: Return -EINVAL if pdata is NULL Return -EINVAL if pdata is NULL, otherwise we have NULL dereference bug. This patch also moves the code checking pdata earlier in lp872x_probe. Signed-off-by: Axel Lin Signed-off-by: Mark Brown tÕ®W“,x