aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/power/smb347-charger.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/power/smb347-charger.c b/drivers/power/smb347-charger.c
index 18d53748e66d..de6898f5d166 100644
--- a/drivers/power/smb347-charger.c
+++ b/drivers/power/smb347-charger.c
@@ -925,10 +925,6 @@ static int smb347_irq_init(struct smb347_charger *smb)
925 if (ret < 0) 925 if (ret < 0)
926 goto fail_readonly; 926 goto fail_readonly;
927 927
928 ret = smb347_irq_enable(smb);
929 if (ret < 0)
930 goto fail_readonly;
931
932 smb347_set_writable(smb, false); 928 smb347_set_writable(smb, false);
933 smb->client->irq = irq; 929 smb->client->irq = irq;
934 return 0; 930 return 0;
@@ -1241,6 +1237,8 @@ static int smb347_probe(struct i2c_client *client,
1241 if (ret < 0) { 1237 if (ret < 0) {
1242 dev_warn(dev, "failed to initialize IRQ: %d\n", ret); 1238 dev_warn(dev, "failed to initialize IRQ: %d\n", ret);
1243 dev_warn(dev, "disabling IRQ support\n"); 1239 dev_warn(dev, "disabling IRQ support\n");
1240 } else {
1241 smb347_irq_enable(smb);
1244 } 1242 }
1245 } 1243 }
1246 1244