summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/atheros/atlx
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-03-27 10:39:29 (GMT)
committerDavid S. Miller <davem@davemloft.net>2014-03-29 19:31:33 (GMT)
commitc3f0dd38996d5f4e7c681099ba18cc1587155edb (patch)
tree5c5f032bebb956475aa21fabf138da46f66c390b /drivers/net/ethernet/atheros/atlx
parent015f0688f57ca4d499047d335b8052a733e17a4d (diff)
downloadlinux-c3f0dd38996d5f4e7c681099ba18cc1587155edb.tar.xz
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>
Diffstat (limited to 'drivers/net/ethernet/atheros/atlx')
0 files changed, 0 insertions, 0 deletions