summaryrefslogtreecommitdiff
path: root/drivers/mfd
diff options
context:
space:
mode:
authorLeon Romanovsky <leon@leon.nu>2013-05-15 15:00:48 (GMT)
committerSamuel Ortiz <sameo@linux.intel.com>2013-06-11 17:27:51 (GMT)
commit15447a46a56a6d191af76ba0e3155c9b1877f596 (patch)
tree6c8bf8cc57dbcd6512793655cd382472cfd8ae30 /drivers/mfd
parent45fcac1aad5d092f46fc95230aad818abb221b34 (diff)
downloadlinux-fsl-qoriq-15447a46a56a6d191af76ba0e3155c9b1877f596.tar.xz
mfd: sec-core: Remove explicit call to mfd_remove_devices
In case mfd_add_devices will fail, it will call to mfd_remove_devices by itself and return non-zero value. Signed-off-by: Leon Romanovsky <leon@leon.nu> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/sec-core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c
index 77ee26ef..cc896d1 100644
--- a/drivers/mfd/sec-core.c
+++ b/drivers/mfd/sec-core.c
@@ -230,13 +230,12 @@ static int sec_pmic_probe(struct i2c_client *i2c,
BUG();
}
- if (ret < 0)
+ if (ret)
goto err;
return ret;
err:
- mfd_remove_devices(sec_pmic->dev);
sec_irq_exit(sec_pmic);
i2c_unregister_device(sec_pmic->rtc);
return ret;