mfd: Fix wm8994_device_init() return value
authorAxel Lin <axel.lin@gmail.com>
Wed, 4 Aug 2010 01:44:47 +0000 (09:44 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 12 Aug 2010 09:28:07 +0000 (11:28 +0200)
commitfccbd21f333638a33efb6fc65fff58d1bc2a90bd
tree250c7eabbe96b9813b51447e1350522cb00e2bc0
parentef256176c7ede53741ad8c0231db0cc46c0cfce5
mfd: Fix wm8994_device_init() return value

wm8994_device_init() will return 0 in the case of kzalloc fail
in current implementation.
This patch fixes the return value.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/wm8994-core.c