linux/drivers/net/ethernet/marvell
Thomas Petazzoni c3f0dd3899 net: mvneta: use devm_ioremap_resource() instead of of_iomap()
The mvneta driver currently uses of_iomap(), which has two drawbacks:
it doesn't request the resource, and it isn't devm-style so some error
handling is needed.

This commit switches to use devm_ioremap_resource() instead, which
automatically requests the resource (so the I/O registers region shows
up properly in /proc/iomem), and also is devm-style, which allows to
get rid of some error handling to unmap the I/O registers region.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-03-29 15:31:33 -04:00
..
Kconfig net: ethernet: update dependency and help text of mvneta 2014-02-18 18:09:02 -05:00
Makefile
mv643xx_eth.c mv643xx_eth: Call dev_kfree_skb_any instead of dev_kfree_skb. 2014-03-24 21:19:05 -07:00
mvmdio.c net: mvmdio: remove empty MDIO bus reset function 2014-03-28 01:38:02 -04:00
mvneta.c net: mvneta: use devm_ioremap_resource() instead of of_iomap() 2014-03-29 15:31:33 -04:00
pxa168_eth.c drivers/net: delete non-required instances of include <linux/init.h> 2014-01-16 11:53:26 -08:00
skge.c skge: Call dev_kfree/consume_skb_any instead of dev_kfree_skb. 2014-03-24 21:19:05 -07:00
skge.h
sky2.c sky2: Call dev_kfree_skb_any instead of dev_kfree_skb. 2014-03-24 21:19:06 -07:00
sky2.h