]> git.openfabrics.org - ~emulex/compat.git/commitdiff
Backport DEFINE_PCI_DEVICE_TABLE for kernels < 2.6.25
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Wed, 13 Jan 2010 00:31:23 +0000 (16:31 -0800)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Wed, 13 Jan 2010 00:31:23 +0000 (16:31 -0800)
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
include/linux/compat-2.6.25.h

index c188f369aafc2473c2e33ae7eecc141642dc73f7..4804977f5744d048d7c4a81860ac0a9c9668c83d 100644 (file)
 #include <linux/pm.h>
 #include <asm-generic/bug.h>
 #include <linux/pm_qos_params.h>
+#include <linux/pci.h>
+
+/* 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)