Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344709
b: refs/heads/master
c: 00af4b1
h: refs/heads/master
i:
  344707: f1a1540
v: v3
  • Loading branch information
Sachin Kamat authored and MyungJoo Ham committed Nov 21, 2012
1 parent a48a4ca commit 3554283
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 68c9274d0fd1f66c6d105c52a61268d943e30862
refs/heads/master: 00af4b16e098f7899d78c7009f0b525c9c512f94
10 changes: 6 additions & 4 deletions trunk/drivers/extcon/extcon-max77693.c
Original file line number Diff line number Diff line change
Expand Up @@ -686,11 +686,13 @@ static int __devinit max77693_muic_probe(struct platform_device *pdev)
/* Support irq domain for MAX77693 MUIC device */
for (i = 0; i < ARRAY_SIZE(muic_irqs); i++) {
struct max77693_muic_irq *muic_irq = &muic_irqs[i];
int virq = 0;
unsigned int virq = 0;

virq = irq_create_mapping(max77693->irq_domain, muic_irq->irq);
if (!virq)
if (!virq) {
ret = -EINVAL;
goto err_irq;
}
muic_irq->virq = virq;

ret = request_threaded_irq(virq, NULL,
Expand All @@ -702,8 +704,6 @@ static int __devinit max77693_muic_probe(struct platform_device *pdev)
" error :%d)\n",
muic_irq->irq, ret);

for (i = i - 1; i >= 0; i--)
free_irq(muic_irq->virq, info);
goto err_irq;
}
}
Expand Down Expand Up @@ -768,6 +768,8 @@ static int __devinit max77693_muic_probe(struct platform_device *pdev)
err_extcon:
kfree(info->edev);
err_irq:
while (--i >= 0)
free_irq(muic_irqs[i].virq, info);
err_regmap:
kfree(info);
err_kfree:
Expand Down

0 comments on commit 3554283

Please sign in to comment.