From 164f89e94765b8f8b3517d91802d2b842cdde6ad Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Thu, 21 Feb 2002 17:57:56 +0000 Subject: [PATCH] quick hack to fix lack of PCI_VENDOR_ID_ICP in 2.2 kernels --- include/linux/pci.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/pci.h b/include/linux/pci.h index 77a2610a..19a04bae 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -23,6 +23,9 @@ #define pci_enable_device(x) 0 #define PCI_ANY_ID (~0) +#ifndef PCI_VENDOR_ID_ICP +#define PCI_VENDOR_ID_ICP 0x104c +#endif struct pci_device_id { unsigned int vendor, device; @@ -72,9 +75,6 @@ extern inline unsigned long pci_resource_start(struct pci_dev *dev, unsigned int return dev->base_address[bar] & PCI_BASE_ADDRESS_IO_MASK; return dev->base_address[bar] & PCI_BASE_ADDRESS_MEM_MASK; } - -#else - #endif #endif -- 2.26.2