Re: [PATCH] fix ppc ioremap prototype

Benjamin Herrenschmidt
2003-09-04T10:07:28Z

On Thu, 2003-09-04 at 11:29, Christoph Hellwig wrote:
> On Thu, Sep 04, 2003 at 01:09:40AM -0700, David S. Miller wrote:
> > On Thu, 4 Sep 2003 09:38:45 +0200
> > Christoph Hellwig <hch@lst.de> wrote:
> >
> > > Umm, right, so the typedef name is also completly bogus, if we're
> > > going to go that route it needs to be something likeb iocookie_t.
> >
> > My suggestion is to just pass a resource and an offset to ioremap().
>
> Here's a ioremap_resource implementation. Tested on ppc32 with a
> converted sungem driver.

Please, make so that ioremap_resource can be passed a PCI IO resource
as well and just do nothing in this case.

Ben.