From: Arnd Bergmann <arnd@arndb.de>
Date: Mon, 22 Aug 2011 16:07:25 +0200
How about renaming the sparc of_ioremap/of_iounmap pair to
resource_iomap/resource_iounmap? I believe that it is not
(any more) tied to device tree based probing at all, and also
could be useful for other subsystems on non-sparc architectures.
Sure, but it would be even nicer if other platforms used pre-computed
resources :-)
It would make OF devices match how PCI devices are managed, and that's
one of the main reasons I implemented it this way.
I know someone is going to say that OF resource resolution is "hard" or
difficult to untangle with how drivers on other platforms work. But
that situation only exists because other platforms didn't do preresolved
OF resources from the beginning.
Having resource resolution handling and/or knowledge scattered throughout
all of the non-sparc OF drivers is very unwise.