mfd: Cleanup pcf50633_probe error handling
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 7 Oct 2009 22:24:54 +0000 (00:24 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 13 Dec 2009 18:21:28 +0000 (19:21 +0100)
commit24213ae19aed6307e309125cc5fcb14e52e475ed
tree579f1ba4e46976942aee8950bc91ec8ca4599a0a
parent4e8b70265c069544beb5a63b38544b53035b395e
mfd: Cleanup pcf50633_probe error handling

Currently the child devices were not freed if the irq could not be requested.
This patch restructures the function, that in case of an error all previously
allocated resources are freed.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/pcf50633-core.c