From c3f0dd38996d5f4e7c681099ba18cc1587155edb Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Thu, 27 Mar 2014 11:39:29 +0100 Subject: [PATCH] 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-format-patch failed