Skip to contentSkip to conversation

of_iomap confusion

DISCUSSION Benjamin Herrenschmidt 1 participant 1 message Nov 12, 2007

lore
Share & tools
lore
#0 lore raw

I just noticed this of_iomap() helper thing we have in prom_parse.c nowadays.

It's a bit confusing as "iomap" is generally what we use to name the new iomap interface (ioport_map, pci_iomap, ...) and that requires -different- accessors than memory obtained from ioremap.

This I think this needs to be changed.

We should call it of_ioremap() or of_map_resource() and if we want an of_iomap(), it should provide an iomap token, not an ioremap address (they look the same on powerpc, but they shouldn't be mixed up).

Ben.