summaryrefslogtreecommitdiff
path: root/usr/.gitignore
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2012-03-09 08:24:53 +0400
committerChris Ball <cjb@laptop.org>2012-04-06 04:32:16 +0400
commit9bda6da7ff7d35ef757e235aae559e679d3a9493 (patch)
treefb2e3eeb8d6175d6f82aa6a9de376a10d2f3b0a4 /usr/.gitignore
parent1d4dc338bb7cbbadcb5a527b1b0e897b5cde1701 (diff)
downloadlinux-9bda6da7ff7d35ef757e235aae559e679d3a9493.tar.xz
mmc: sdhci-s3c: use devm_ functions
The various devm_ functions allocate memory that is released when a driver detaches. This patch uses these functions for data that is allocated in the probe function of a platform device and is only freed in the remove function. By using devm_ioremap, it also removes a potential memory leak, because there was no call to iounmap in the probe function. The call to platform_get_resource was moved just to make it closer to the place where its result it used. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'usr/.gitignore')
0 files changed, 0 insertions, 0 deletions