2000-10-12 15:25:24

by Jeff Garzik

[permalink] [raw]
Subject: Re: ioremap of pci base addresses

Francois romieu wrote:
> token = (unsigned long)ioremap(pci_resource_start(pdev, 0),
> pci_resource_len(pdev, 0));

Looks great except for one small point -- we have been going through
drivers cleaning up where they start casting like this. You should this
token as a void*, and code which uses the value should adjust
accordingly...

Jeff