Commit 03937704 authored by Arnd Bergmann's avatar Arnd Bergmann

Merge tag 'pxa-fixes-5.0' of https://github.com/rjarzmik/linux into arm/fixes

This is the pxa fixes set for v4.20 cycle:
 - only a single devm allocated pointer free fix, which was never
   triggered runtime but code analysis found.

* tag 'pxa-fixes-5.0' of https://github.com/rjarzmik/linux:
  ARM: pxa: ssp: unneeded to free devm_ allocated data
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parents 3673a91c ba16adeb
...@@ -190,8 +190,6 @@ static int pxa_ssp_remove(struct platform_device *pdev) ...@@ -190,8 +190,6 @@ static int pxa_ssp_remove(struct platform_device *pdev)
if (ssp == NULL) if (ssp == NULL)
return -ENODEV; return -ENODEV;
iounmap(ssp->mmio_base);
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
release_mem_region(res->start, resource_size(res)); release_mem_region(res->start, resource_size(res));
...@@ -201,7 +199,6 @@ static int pxa_ssp_remove(struct platform_device *pdev) ...@@ -201,7 +199,6 @@ static int pxa_ssp_remove(struct platform_device *pdev)
list_del(&ssp->node); list_del(&ssp->node);
mutex_unlock(&ssp_lock); mutex_unlock(&ssp_lock);
kfree(ssp);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment