diff options
author | Shaun Ruffell <sruffell@digium.com> | 2011-01-03 18:26:24 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2011-01-03 18:26:24 +0000 |
commit | 68699cbfaac0d5cbac72ebe7f577c10d156356af (patch) | |
tree | 4b06a340dd9a0761ae05d8eb02be900a7ad8daba /drivers/dahdi/tor2-hw.h | |
parent | ee5f8bbcf9ec4979f57b0a2f74c3423c937f5107 (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>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9584 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/tor2-hw.h')
-rw-r--r-- | drivers/dahdi/tor2-hw.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dahdi/tor2-hw.h b/drivers/dahdi/tor2-hw.h index 04f01d5..2dceab8 100644 --- a/drivers/dahdi/tor2-hw.h +++ b/drivers/dahdi/tor2-hw.h @@ -108,7 +108,7 @@ #define PCI_VENDOR_ID_PLX 0x10b5 #ifdef __KERNEL__ -static struct pci_device_id tor2_pci_ids[] = +static DEFINE_PCI_DEVICE_TABLE(tor2_pci_ids) = #else #define PCI_ANY_ID -1 static struct tor2_pci_id { |