From: Julia Lawall Date: Fri, 9 Mar 2012 04:24:53 +0000 (-0500) Subject: mmc: sdhci-s3c: use devm_ functions X-Git-Tag: v3.4-rc2~9^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bda6da7ff7d35ef757e235aae559e679d3a9493;p=pandora-kernel.git 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 Signed-off-by: Chris Ball --- Reading git-diff-tree failed