https://github.com/torvalds/linux
Revision b5f3b75d9d3b5526d973fc0bfee5680bdc6acf2a authored by Thomas Petazzoni on 25 March 2014, 23:26:55 UTC, committed by David S. Miller on 26 March 2014, 20:52:42 UTC
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>
1 parent e3a8786
History
Tip revision: b5f3b75d9d3b5526d973fc0bfee5680bdc6acf2a authored by Thomas Petazzoni on 25 March 2014, 23:26:55 UTC
net: mvneta: use devm_ioremap_resource() instead of of_iomap()
Tip revision: b5f3b75
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 93.3 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 267.3 KB
Makefile -rw-r--r-- 49.1 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top