Skip to content

Commit

Permalink
ARM: pxa: ssp: unneeded to free devm_ allocated data
Browse files Browse the repository at this point in the history
devm_ allocated data will be automatically freed. The free
of devm_ allocated data is invalid.

Fixes: 1c459de ("ARM: pxa: ssp: use devm_ functions")
Signed-off-by: Peng Hao <[email protected]>
[title's prefix changed]
Signed-off-by: Robert Jarzmik <[email protected]>
  • Loading branch information
Peng Hao authored and rjarzmik committed Jan 23, 2019
1 parent bfeffd1 commit ba16ade
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions arch/arm/plat-pxa/ssp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand All @@ -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;
}

Expand Down

0 comments on commit ba16ade

Please sign in to comment.