]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit28394586cac086e12189bcb593901d68e73280d9
treed1119a87d91e9a01dfb225ea677d01b976fd218e
parentf50f93fb17c5acf0e92f1317bab524622218d4d5
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