diff options
author | Peng Hao <peng.hao2@zte.com.cn> | 2018-12-29 08:10:06 +0300 |
---|---|---|
committer | Robert Jarzmik <robert.jarzmik@free.fr> | 2019-01-23 23:32:01 +0300 |
commit | ba16adeb346387eb2d1ada69003588be96f098fa (patch) | |
tree | 47763724a25f6e6e418c4dec9be59f16a3ad1549 /arch/arm/plat-pxa | |
parent | bfeffd155283772bbe78c6a05dec7c0128ee500c (diff) | |
download | linux-ba16adeb346387eb2d1ada69003588be96f098fa.tar.xz |
ARM: pxa: ssp: unneeded to free devm_ allocated data
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>
Diffstat (limited to 'arch/arm/plat-pxa')
-rw-r--r-- | arch/arm/plat-pxa/ssp.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/arm/plat-pxa/ssp.c b/arch/arm/plat-pxa/ssp.c index ed36dcab80f1..f51919974183 100644 --- a/arch/arm/plat-pxa/ssp.c +++ b/arch/arm/plat-pxa/ssp.c @@ -190,8 +190,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)); @@ -201,7 +199,6 @@ static int pxa_ssp_remove(struct platform_device *pdev) list_del(&ssp->node); mutex_unlock(&ssp_lock); - kfree(ssp); return 0; } |