mfd: Check jz4740-adc kmalloc() result
authorAxel Lin <axel.lin@gmail.com>
Mon, 2 Aug 2010 01:02:02 +0000 (09:02 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 12 Aug 2010 09:28:02 +0000 (11:28 +0200)
commit789133b7b4dd4915550733af5dc005ca89121c73
tree8d31da0c6b8d4a837212dc4657033f8cf28db3c0
parent48736c80e5d0c7c9db97bd6643a979a4ab11f25b
mfd: Check jz4740-adc kmalloc() result

If kmalloc() fails exit with -ENOMEM.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/jz4740-adc.c