]> git.baikalelectronics.ru Git - kernel.git/commit
net: mdio-sun4i: Convert to devm_* api
authorJisheng Zhang <jszhang@marvell.com>
Mon, 26 Aug 2013 13:11:57 +0000 (21:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Aug 2013 18:54:49 +0000 (14:54 -0400)
commit28372a3fa7151bf7b1eb6d9bd1f92b154080b205
tree8e3cd7169ea628ddf9bff945084b9c000ea93d20
parent9eebabd70d17eab9702e9f045d8fb0746a6f85bd
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>
drivers/net/phy/mdio-sun4i.c