commit | 03536cc3ad611f29a35803d37a44414b823135c3 | [log] [tgz] |
---|---|---|
author | Jisheng Zhang <jszhang@marvell.com> | Mon Aug 26 21:11:57 2013 +0800 |
committer | David S. Miller <davem@davemloft.net> | Thu Aug 29 14:54:49 2013 -0400 |
tree | 8e3cd7169ea628ddf9bff945084b9c000ea93d20 | |
parent | 4c9d546f6c522f541dfb01e192ab7101eca0053b [diff] |
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 <jszhang@marvell.com> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: David S. Miller <davem@davemloft.net>