]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite59a3a8307dccc5d7752b6b4088f5881d399cf14
tree250c7eabbe96b9813b51447e1350522cb00e2bc0
parent824dd6bb7830ae36fac2fad0aff58eb498ae05ea
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