summaryrefslogtreecommitdiffstats
path: root/net/unix
diff options
context:
space:
mode:
authorThomas Petazzoni2014-03-26 00:26:55 +0100
committerDavid S. Miller2014-03-26 21:52:42 +0100
commitb5f3b75d9d3b5526d973fc0bfee5680bdc6acf2a (patch)
treeb2acdc5f918c94602776b1ad3cd05d075b625096 /net/unix
parentnet: mvneta: fix usage as a module on RGMII configurations (diff)
downloadkernel-qcow2-linux-b5f3b75d9d3b5526d973fc0bfee5680bdc6acf2a.tar.gz
kernel-qcow2-linux-b5f3b75d9d3b5526d973fc0bfee5680bdc6acf2a.tar.xz
kernel-qcow2-linux-b5f3b75d9d3b5526d973fc0bfee5680bdc6acf2a.zip
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 'net/unix')
0 files changed, 0 insertions, 0 deletions