mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
pinctrl: mediatek: mtk-common: Remove kfree
Remove erroneous kfree for memory allocated by devm_kzalloc Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Yingjoe Chen <yingjoe.chen@mediatek.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
d48c532eb4
commit
61a3557671
1 changed files with 2 additions and 4 deletions
|
@ -1222,7 +1222,7 @@ int mtk_pctrl_init(struct platform_device *pdev,
|
||||||
if (!irq) {
|
if (!irq) {
|
||||||
dev_err(&pdev->dev, "couldn't parse and map irq\n");
|
dev_err(&pdev->dev, "couldn't parse and map irq\n");
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
goto free_edges;
|
goto chip_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
pctl->domain = irq_domain_add_linear(np,
|
pctl->domain = irq_domain_add_linear(np,
|
||||||
|
@ -1230,7 +1230,7 @@ int mtk_pctrl_init(struct platform_device *pdev,
|
||||||
if (!pctl->domain) {
|
if (!pctl->domain) {
|
||||||
dev_err(&pdev->dev, "Couldn't register IRQ domain\n");
|
dev_err(&pdev->dev, "Couldn't register IRQ domain\n");
|
||||||
ret = -ENOMEM;
|
ret = -ENOMEM;
|
||||||
goto free_edges;
|
goto chip_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
mtk_eint_init(pctl);
|
mtk_eint_init(pctl);
|
||||||
|
@ -1248,8 +1248,6 @@ int mtk_pctrl_init(struct platform_device *pdev,
|
||||||
set_irq_flags(irq, IRQF_VALID);
|
set_irq_flags(irq, IRQF_VALID);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
free_edges:
|
|
||||||
kfree(pctl->eint_dual_edges);
|
|
||||||
chip_error:
|
chip_error:
|
||||||
gpiochip_remove(pctl->chip);
|
gpiochip_remove(pctl->chip);
|
||||||
pctrl_error:
|
pctrl_error:
|
||||||
|
|
Loading…
Add table
Reference in a new issue