Pavel Roskin <[EMAIL PROTECTED]> : > On Fri, 2006-04-07 at 23:36 +0200, Francois Romieu wrote: > > > > @@ -208,8 +205,8 @@ static int orinoco_pci_init_one(struct p > > > priv = netdev_priv(dev); > > > card = priv->card; > > > card->pci_ioaddr = pci_ioaddr; > > > - dev->mem_start = pci_iorange; > > > - dev->mem_end = pci_iorange + pci_iolen - 1; > > > + dev->mem_start = pci_resource_start(pdev, 0); > > > + dev->mem_end = dev->mem_start + pci_resource_len(pdev, 0) - 1; > > > > Is there a reason why dev->mem_{start/end} should not be removed ? > > Is there a reason why it should? Is it going to be obsolete?
It is slowly obsoleting for a few years (don't laugh...). It is preferred to store the relevant address in the private part of the (pci) device. Moderately recent drivers do not use it at all. However it's fairly common in the setup code of the (legacy) isa devices. -- Ueimor - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html