mfd: Fix resource reclaim for max8998
authorAxel Lin <axel.lin@gmail.com>
Fri, 22 Oct 2010 00:31:49 +0000 (08:31 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 28 Oct 2010 22:30:39 +0000 (00:30 +0200)
commit7484552eb24e3c62ef55a4ff0133d8450adea206
treee7dc6967a86eeb474165656deb322f9fcbcfd1b0
parent25d950714781f34e7ae1292f38889cf39983cb38
mfd: Fix resource reclaim for max8998

Properly free irq and unregister max8998->rtc device in
max8998_i2c_probe() error path and max8998_i2c_remove().

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