mfd: Fix jz4740-adc resource reclaim in probe error path
authorAxel Lin <axel.lin@gmail.com>
Thu, 29 Jul 2010 08:28:25 +0000 (16:28 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 12 Aug 2010 09:28:01 +0000 (11:28 +0200)
commit48736c80e5d0c7c9db97bd6643a979a4ab11f25b
tree48652b4fd0284dfc7ed871e45c423b0b06ab4a09
parent889135210b794df9cea4b1e94dff78c264edc5e7
mfd: Fix jz4740-adc resource reclaim in probe error path

If mfd_add_devices() fail, we need to relese allocated resources.

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