Skip to content

Commit

Permalink
pinctrl-sirf: remove devm_kfree at error path
Browse files Browse the repository at this point in the history
the pointers that are allocated with devm_kzalloc will be automatically freed,
at unload time.

Signed-off-by: Devendra Naga <develkernel412222@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Devendra Naga authored and Linus Walleij committed Aug 7, 2012
1 parent 606b64e commit f4b49de
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/pinctrl/pinctrl-sirf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,6 @@ static int __devinit sirfsoc_pinmux_probe(struct platform_device *pdev)
iounmap(spmx->gpio_virtbase);
out_no_gpio_remap:
platform_set_drvdata(pdev, NULL);
devm_kfree(&pdev->dev, spmx);
return ret;
}

Expand Down

0 comments on commit f4b49de

Please sign in to comment.