net: davinci_mdio: simplify IO memory mapping
authorGrygorii Strashko <grygorii.strashko@ti.com>
Wed, 30 Apr 2014 12:23:36 +0000 (15:23 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 May 2014 20:16:26 +0000 (16:16 -0400)
commit9728e1a7d331fab8d1b625657596afa7391d0a95
tree3f990d00fca12ef29d8c9dfbbe2c54b4e57c1f65
parent4e8b4c802cb829d29a87fd905e4d74ecf22ef4b4
net: davinci_mdio: simplify IO memory mapping

Simplify IO memory mapping by using devm_ioremap_resource()
which will do all errors handling and reporting for us.

Acked-and-tested-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_mdio.c