regulator: lp872x: handle error case
authorMilo Kim <milo.kim@ti.com>
Tue, 25 Aug 2015 05:54:12 +0000 (14:54 +0900)
committerMark Brown <broonie@kernel.org>
Tue, 25 Aug 2015 18:36:24 +0000 (19:36 +0100)
commit804486b19de92449203f95027c2b207d8c5d5c79
treed1119a87d91e9a01dfb225ea677d01b976fd218e
parentd9ffae15f7b1933c71dfb7c5e8ef61296d2833d7
regulator: lp872x: handle error case

If memory allocation gets failed on parsing the DT, then it returns error
'-ENOMEM' explicitly. Then, the driver exists from the _probe().

Signed-off-by: Milo Kim <milo.kim@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/lp872x.c