From 03536cc3ad611f29a35803d37a44414b823135c3 Mon Sep 17 00:00:00 2001 From: Jisheng Zhang Date: Mon, 26 Aug 2013 21:11:57 +0800 Subject: [PATCH] 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-format-patch failed