From: Jisheng Zhang Date: Mon, 26 Aug 2013 13:11:57 +0000 (+0800) Subject: net: mdio-sun4i: Convert to devm_* api X-Git-Tag: v3.12-rc1~132^2~161 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03536cc3ad611f29a35803d37a44414b823135c3;p=pandora-kernel.git net: mdio-sun4i: Convert to devm_* api Use devm_ioremap_resource instead of of_iomap() and devm_kzalloc() instead of kmalloc() to make cleanup paths simpler. This patch also fixes the resource leak caused by missing corresponding iounamp() of the of_iomap(). Signed-off-by: Jisheng Zhang Acked-by: Maxime Ripard Signed-off-by: David S. Miller --- Reading git-diff-tree failed