summaryrefslogtreecommitdiff
path: root/arch/arm/plat-pxa/ssp.c
diff options
context:
space:
mode:
authorPeng Hao <peng.hao2@zte.com.cn>2018-12-29 13:10:06 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-03-13 14:03:20 -0700
commit7031b8ca7fde45b8d7d53d12b9454c8dd2d795ed (patch)
tree340ed5f68b61cb1b88d3e5711933932d8a8c18c9 /arch/arm/plat-pxa/ssp.c
parentd74f30ef8972099e2bcc1c8a212f9418c6eebd7c (diff)
ARM: pxa: ssp: unneeded to free devm_ allocated data
[ Upstream commit ba16adeb346387eb2d1ada69003588be96f098fa ] devm_ allocated data will be automatically freed. The free of devm_ allocated data is invalid. Fixes: 1c459de1e645 ("ARM: pxa: ssp: use devm_ functions") Signed-off-by: Peng Hao <peng.hao2@zte.com.cn> [title's prefix changed] Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/arm/plat-pxa/ssp.c')
-rw-r--r--arch/arm/plat-pxa/ssp.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/arm/plat-pxa/ssp.c b/arch/arm/plat-pxa/ssp.c
index ba13f793fbce..b92673efffff 100644
--- a/arch/arm/plat-pxa/ssp.c
+++ b/arch/arm/plat-pxa/ssp.c
@@ -237,8 +237,6 @@ static int pxa_ssp_remove(struct platform_device *pdev)
if (ssp == NULL)
return -ENODEV;
- iounmap(ssp->mmio_base);
-
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
release_mem_region(res->start, resource_size(res));
@@ -248,7 +246,6 @@ static int pxa_ssp_remove(struct platform_device *pdev)
list_del(&ssp->node);
mutex_unlock(&ssp_lock);
- kfree(ssp);
return 0;
}