From: Thomas Petazzoni Date: Tue, 25 Mar 2014 23:26:55 +0000 (+0100) Subject: net: mvneta: use devm_ioremap_resource() instead of of_iomap() X-Git-Tag: v3.14~8^2~20^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5f3b75d9d3b5526d973fc0bfee5680bdc6acf2a;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed