From: Leon Romanovsky Date: Wed, 15 May 2013 15:00:48 +0000 (+0300) Subject: mfd: sec-core: Remove explicit call to mfd_remove_devices X-Git-Tag: next-20130521~38^2~17 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=585ee857cfbd4878e04786421bb41953872978e9;p=karo-tx-linux.git 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 Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c index 77ee26ef5941..cc896d1c1cdd 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;