Dear Florian Fainelli,
On Tue, 29 Jan 2013 16:24:04 +0100, Florian Fainelli wrote:Fix the driver remove callback to unmap the base register address andWhat about using devm_request_and_ioremap() instead, in order to get
not leak this mapping after the driver has been removed.
Signed-off-by: Florian Fainelli <florian@xxxxxxxxxxx>
automatic unmap on error and in the ->remove() path?
Then we would loose the facility of of_iomap(), but fair enough, it can be inserted as a patch in this serie.
But maybe it won't work because this memory range is claimed both by
the MDIO driver and the Ethernet driver itself. In that case, you could
use devm_ioremap().