summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-03-12 21:52:33 +0800
committerLinus Walleij <linus.walleij@linaro.org>2015-03-18 12:57:48 +0100
commit61a3557671006434141a6bce24c32bab2f1c9a35 (patch)
tree42c3da55eb66971a51aa0b713e838b9596fe8b52 /drivers/pinctrl
parentd48c532eb4cf167731bc2b1ac08d908ac26ebae5 (diff)
downloadblackbird-obmc-linux-61a3557671006434141a6bce24c32bab2f1c9a35.tar.gz
blackbird-obmc-linux-61a3557671006434141a6bce24c32bab2f1c9a35.zip
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>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r--drivers/pinctrl/mediatek/pinctrl-mtk-common.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
index b8f8bef8db1e..f82f57a4c354 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
@@ -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:
OpenPOWER on IntegriCloud