regulator: handle kcalloc() failure
authorDan Carpenter <error27@gmail.com>
Sun, 7 Mar 2010 12:36:45 +0000 (15:36 +0300)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Mon, 22 Mar 2010 19:44:44 +0000 (19:44 +0000)
commit67e46f347eb25222e2b415540b6ba3fd2574afe2
tree9592b35a6228ed1c491805b38733b6f8dc709b78
parent3fff6c04d81a2852821135736fad2d8386464753
regulator: handle kcalloc() failure

Return -ENOMEM if kcalloc() fails

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/lp3971.c