diff options
author | 2012-03-08 23:24:53 -0500 | |
---|---|---|
committer | 2012-04-05 20:32:16 -0400 | |
commit | 9bda6da7ff7d35ef757e235aae559e679d3a9493 (patch) | |
tree | fb2e3eeb8d6175d6f82aa6a9de376a10d2f3b0a4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mmc: sdhci-s3c: Keep a copy of platform data and use it (diff) | |
download | linux-dev-9bda6da7ff7d35ef757e235aae559e679d3a9493.tar.xz linux-dev-9bda6da7ff7d35ef757e235aae559e679d3a9493.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions