diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-03-12 09:52:33 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-03-18 07:57:48 -0400 |
commit | 61a3557671006434141a6bce24c32bab2f1c9a35 (patch) | |
tree | 42c3da55eb66971a51aa0b713e838b9596fe8b52 /drivers/pinctrl | |
parent | d48c532eb4cf167731bc2b1ac08d908ac26ebae5 (diff) |
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.c | 6 |
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, | |||
1222 | if (!irq) { | 1222 | if (!irq) { |
1223 | dev_err(&pdev->dev, "couldn't parse and map irq\n"); | 1223 | dev_err(&pdev->dev, "couldn't parse and map irq\n"); |
1224 | ret = -EINVAL; | 1224 | ret = -EINVAL; |
1225 | goto free_edges; | 1225 | goto chip_error; |
1226 | } | 1226 | } |
1227 | 1227 | ||
1228 | pctl->domain = irq_domain_add_linear(np, | 1228 | pctl->domain = irq_domain_add_linear(np, |
@@ -1230,7 +1230,7 @@ int mtk_pctrl_init(struct platform_device *pdev, | |||
1230 | if (!pctl->domain) { | 1230 | if (!pctl->domain) { |
1231 | dev_err(&pdev->dev, "Couldn't register IRQ domain\n"); | 1231 | dev_err(&pdev->dev, "Couldn't register IRQ domain\n"); |
1232 | ret = -ENOMEM; | 1232 | ret = -ENOMEM; |
1233 | goto free_edges; | 1233 | goto chip_error; |
1234 | } | 1234 | } |
1235 | 1235 | ||
1236 | mtk_eint_init(pctl); | 1236 | mtk_eint_init(pctl); |
@@ -1248,8 +1248,6 @@ int mtk_pctrl_init(struct platform_device *pdev, | |||
1248 | set_irq_flags(irq, IRQF_VALID); | 1248 | set_irq_flags(irq, IRQF_VALID); |
1249 | return 0; | 1249 | return 0; |
1250 | 1250 | ||
1251 | free_edges: | ||
1252 | kfree(pctl->eint_dual_edges); | ||
1253 | chip_error: | 1251 | chip_error: |
1254 | gpiochip_remove(pctl->chip); | 1252 | gpiochip_remove(pctl->chip); |
1255 | pctrl_error: | 1253 | pctrl_error: |