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: v3.11-rc1~53^2~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15447a46a56a6d191af76ba0e3155c9b1877f596;p=thirdparty%2Fkernel%2Fstable.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 77ee26ef59417..cc896d1c1cddb 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;