Re: [PATCH] fix ppc ioremap prototype

David S. Miller
2003-09-04T12:55:39Z

On Thu, 04 Sep 2003 08:42:11 -0400
Jeff Garzik <jgarzik@pobox.com> wrote:

> ioremap() has long wanted a struct pci_dev argument too.
> (or make that struct device, now)

I majorly disagree.

If you can't do it with a resource/offset/len triple,
a struct device isn't going to help you much more.

If you need to get at the device, you can convert the
resource to the controller address range or even encode
the controller domain number in the resource somehow.