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

Commit 5a511cd3 authored by Devendra Naga's avatar Devendra Naga Committed by Linus Walleij
Browse files

pinctrl/pinctrl-u300: remove devm_kfree at driver unload



the memory allocated by devm_kzalloc is automatically
freed at the driver detach side, so no neeed of calling
devm_kfree

Signed-off-by: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 6887a413
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
}