Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61a35576 authored by Axel Lin's avatar Axel Lin Committed by Linus Walleij
Browse files

pinctrl: mediatek: mtk-common: Remove kfree



Remove erroneous kfree for memory allocated by devm_kzalloc

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarYingjoe Chen <yingjoe.chen@mediatek.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent d48c532e
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1222,7 +1222,7 @@ int mtk_pctrl_init(struct platform_device *pdev,
	if (!irq) {
		dev_err(&pdev->dev, "couldn't parse and map irq\n");
		ret = -EINVAL;
		goto free_edges;
		goto chip_error;
	}

	pctl->domain = irq_domain_add_linear(np,
@@ -1230,7 +1230,7 @@ int mtk_pctrl_init(struct platform_device *pdev,
	if (!pctl->domain) {
		dev_err(&pdev->dev, "Couldn't register IRQ domain\n");
		ret = -ENOMEM;
		goto free_edges;
		goto chip_error;
	}

	mtk_eint_init(pctl);
@@ -1248,8 +1248,6 @@ int mtk_pctrl_init(struct platform_device *pdev,
	set_irq_flags(irq, IRQF_VALID);
	return 0;

free_edges:
	kfree(pctl->eint_dual_edges);
chip_error:
	gpiochip_remove(pctl->chip);
pctrl_error: