On Mon, Mar 14, 2005 at 08:15:13PM +0800, Antonino A. Daplas wrote:
3. You can use pci_resource_len()/pci_resource_start() instead of
+ info->fix.mmio_start = pdev->resource[1].start;
+ info->fix.mmio_len = pdev->resource[1].end - pdev->resource[1].start;
+ info->fix.smem_start = pdev->resource[0].start;
+ info->fix.smem_len = pdev->resource[0].end - pdev->resource[0].start;
+
No, the pdev here refers to a platform device, not a pci device.
While the pci_resource_xxx() routines would still technically do the
right thing, this is purely coincidental.