From: Luis R. Rodriguez Date: Wed, 13 Jan 2010 00:31:23 +0000 (-0800) Subject: Backport DEFINE_PCI_DEVICE_TABLE for kernels < 2.6.25 X-Git-Tag: next-20100113~8 X-Git-Url: https://git.openfabrics.org/?p=~emulex%2Ffor-vlad%2Fold%2Fcompat.git;a=commitdiff_plain;h=bf830a1a67416b21623b6ba45862699664de5409 Backport DEFINE_PCI_DEVICE_TABLE for kernels < 2.6.25 Signed-off-by: Luis R. Rodriguez --- diff --git a/include/linux/compat-2.6.25.h b/include/linux/compat-2.6.25.h index c188f36..4804977 100644 --- a/include/linux/compat-2.6.25.h +++ b/include/linux/compat-2.6.25.h @@ -16,6 +16,19 @@ #include #include #include +#include + +/* The macro below uses a const upstream, this differs */ + +/** + * DEFINE_PCI_DEVICE_TABLE - macro used to describe a pci device table + * @_table: device table name + * + * This macro is used to create a struct pci_device_id array (a device table) + * in a generic manner. + */ +#define DEFINE_PCI_DEVICE_TABLE(_table) \ + struct pci_device_id _table[] __devinitdata /* * Backport work for QoS dependencies (kernel/pm_qos_params.c)