summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-01-29 16:03:24 +0800
committerRobert Jarzmik <robert.jarzmik@free.fr>2019-04-14 21:54:50 +0200
commit9ee8578d953023cc57e7e736ae48502c707c0210 (patch)
tree51adfefd7920ef3bff70ee7eb4fc30654e1a4f9e /arch
parent9e98c678c2d6ae3a17cb2de55d17f69dddaa231b (diff)
downloadlinux-9ee8578d953023cc57e7e736ae48502c707c0210.tar.bz2
ARM: pxa: ssp: Fix "WARNING: invalid free of devm_ allocated data"
Since commit 1c459de1e645 ("ARM: pxa: ssp: use devm_ functions") kfree, iounmap, clk_put etc are not needed anymore in remove path. Fixes: 1c459de1e645 ("ARM: pxa: ssp: use devm_ functions") Signed-off-by: YueHaibing <yuehaibing@huawei.com> [ commit message spelling fix ] Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/plat-pxa/ssp.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/arm/plat-pxa/ssp.c b/arch/arm/plat-pxa/ssp.c
index f51919974183..bf25f780c1c9 100644
--- a/arch/arm/plat-pxa/ssp.c
+++ b/arch/arm/plat-pxa/ssp.c
@@ -183,18 +183,12 @@ static int pxa_ssp_probe(struct platform_device *pdev)
static int pxa_ssp_remove(struct platform_device *pdev)
{
- struct resource *res;
struct ssp_device *ssp;
ssp = platform_get_drvdata(pdev);
if (ssp == NULL)
return -ENODEV;
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- release_mem_region(res->start, resource_size(res));
-
- clk_put(ssp->clk);
-
mutex_lock(&ssp_lock);
list_del(&ssp->node);
mutex_unlock(&ssp_lock);