diff options
author | Shaun Ruffell <sruffell@digium.com> | 2011-01-21 05:32:45 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2011-01-21 05:32:45 +0000 |
commit | 71326629dd760a5e8ac185a4516796f3d2c21aaa (patch) | |
tree | 0bcbd6d11623df43ac263fc687b74bb4588ca21a /include/dahdi/kernel.h | |
parent | e97c21411eebba552a83f02bc99ed6c7dfbfdf57 (diff) |
"struct pci_device_id[]" -> "DEFINE_PCI_DEVICE_TABLE"
2.6.25 added the DEFINE_PCI_DEVICE_TABLE macro to make sure that the
pci_device_id tables are put into the correct section in the binary.
Convert all the places where the tables were defined to use them.
This is linux-2.6 commit where the change went in along with the
rationale: 90a1ba0c5e39eeea278f263c28ae02166c5911c8
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Acked-by: Kinsey Moore <kmoore@digium.com>
Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=9584
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.4@9691 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'include/dahdi/kernel.h')
-rw-r--r-- | include/dahdi/kernel.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h index 27ab02b..7e28738 100644 --- a/include/dahdi/kernel.h +++ b/include/dahdi/kernel.h @@ -1273,6 +1273,11 @@ wait_for_completion_interruptible_timeout(struct completion *x, #define mutex_unlock(_x) up(_x) #endif +#ifndef DEFINE_PCI_DEVICE_TABLE +#define DEFINE_PCI_DEVICE_TABLE(_x) \ + const struct pci_device_id _x[] __devinitdata +#endif + #ifndef DMA_BIT_MASK #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1)) #endif |