pinctrl/pinctrl-u300: remove devm_kfree at driver unload
authorDevendra Naga <devendra.aaru@gmail.com>
Sat, 16 Jun 2012 17:45:37 +0000 (23:15 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 3 Jul 2012 19:51:07 +0000 (21:51 +0200)
the memory allocated by devm_kzalloc is automatically
freed at the driver detach side, so no neeed of calling
devm_kfree

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-u300.c

index 05d029911be69654329cf6b656cf70d159b24a95..13e7a3eb82e36096794add7934fdd2a567e3e60b 100644 (file)
@@ -1183,7 +1183,6 @@ static int __devexit u300_pmx_remove(struct platform_device *pdev)
        iounmap(upmx->virtbase);
        release_mem_region(upmx->phybase, upmx->physize);
        platform_set_drvdata(pdev, NULL);
-       devm_kfree(&pdev->dev, upmx);
 
        return 0;
 }