Re: ioremap of pci base addresses

From: Jeff Garzik (jgarzik@mandrakesoft.com)
Date: Thu Oct 12 2000 - 10:11:30 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Oct 15 2000 - 21:00:23 EST