Messages in this thread Patch in this message | | | Date | Thu, 12 Aug 1999 09:56:52 +0200 | From | Carsten Paeth <> | Subject | Re: 2.3.13 ncr53c8xx.c: structure has no member named `base_address' |
| |
Wed, Aug 11, 1999 at 10:58:49PM +0200, Joerg Pommnitz schrieb: > Trying to compile Linux-2.3.13 I get: > ncr53c8xx.c: In function `pci_get_base_address': > ncr53c8xx.c:9636: structure has no member named `base_address' > make[3]: *** [ncr53c8xx.o] Error 1
It will work with this patch:
--- linux/drivers/scsi/ncr53c8xx.c Sun Jul 4 18:53:12 1999 +++ v2.3.13/drivers/scsi/ncr53c8xx.c Tue Aug 10 19:17:35 1999 @@ -9628,6 +9628,7 @@ return offset; } #else /* LINUX_VERSION_CODE > LinuxVersionCode(2,1,92) */ +#if LINUX_VERSION_CODE <= LinuxVersionCode(2,3,12) __initfunc( static int pci_get_base_address(struct pci_dev *pdev, int index, u_long *base) @@ -9642,6 +9643,17 @@ } return index; } +#else /* LINUX_VERSION_CODE > LinuxVersionCode(2,3,12) */ +__initfunc( +static int +pci_get_base_address(struct pci_dev *pdev, int index, u_long *base) +) +{ + *base = (pdev->resource[index].start|pdev->resource[index].flags); + index++; + return index; +} +#endif #endif /*
so long
calle
> > Regards > Joerg > > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.rutgers.edu > Please read the FAQ at http://www.tux.org/lkml/
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |