[PATCH 88/90] staging: comedi: rtd520: store the pci_dev in the comedi_device

Ian Abbott abbotti at mev.co.uk
Thu Jul 19 12:41:39 UTC 2012


On 2012-07-19 03:05, H Hartley Sweeten wrote:
> Use the hw_dev pointer in the comedi_device struct to hold the
> pci_dev instead of carrying it in the private data.

My reply to patch 86 has a knock-on effect for this patch...

>   	/* Get the physical address from PCI config */
> -	dev->iobase = pci_resource_start(devpriv->pci_dev, LAS0_PCIINDEX);
> -	physLas1 = pci_resource_start(devpriv->pci_dev, LAS1_PCIINDEX);
> -	physLcfg = pci_resource_start(devpriv->pci_dev, LCFG_PCIINDEX);
> +	dev->iobase = pci_resource_start(pcidev, LAS0_PCIINDEX);
> +	physLas1 = pci_resource_start(pcidev, LAS1_PCIINDEX);
> +	physLcfg = pci_resource_start(pcidev, LCFG_PCIINDEX);

...in the use of dev->iobase to hold a PCI memory address.

-- 
-=( Ian Abbott @ MEV Ltd.    E-mail: <abbotti at mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-





More information about the devel mailing list