diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2010-02-05 17:21:03 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-02-09 05:08:33 -0500 |
commit | cebe41d4b8f8092359de31e241815fcb4b4dc0be (patch) | |
tree | c14cd08f6846e62388c3f1028717108ba0d1bd16 /sound/pci/ctxfi/xfi.c | |
parent | 350a514787a4516746f738f69bff6aa0d4ac70e9 (diff) |
sound: use DEFINE_PCI_DEVICE_TABLE
Use DEFINE_PCI_DEVICE_TABLE() to make PCI device ids go to
.devinit.rodata section, so they can be discarded in some cases,
and make them const.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ctxfi/xfi.c')
-rw-r--r-- | sound/pci/ctxfi/xfi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/ctxfi/xfi.c b/sound/pci/ctxfi/xfi.c index ed44ed788b60..f42e7e1a1074 100644 --- a/sound/pci/ctxfi/xfi.c +++ b/sound/pci/ctxfi/xfi.c | |||
@@ -43,7 +43,7 @@ MODULE_PARM_DESC(enable, "Enable Creative X-Fi driver"); | |||
43 | module_param_array(subsystem, int, NULL, 0444); | 43 | module_param_array(subsystem, int, NULL, 0444); |
44 | MODULE_PARM_DESC(subsystem, "Override subsystem ID for Creative X-Fi driver"); | 44 | MODULE_PARM_DESC(subsystem, "Override subsystem ID for Creative X-Fi driver"); |
45 | 45 | ||
46 | static struct pci_device_id ct_pci_dev_ids[] = { | 46 | static DEFINE_PCI_DEVICE_TABLE(ct_pci_dev_ids) = { |
47 | /* only X-Fi is supported, so... */ | 47 | /* only X-Fi is supported, so... */ |
48 | { PCI_DEVICE(PCI_VENDOR_ID_CREATIVE, PCI_DEVICE_ID_CREATIVE_20K1), | 48 | { PCI_DEVICE(PCI_VENDOR_ID_CREATIVE, PCI_DEVICE_ID_CREATIVE_20K1), |
49 | .driver_data = ATC20K1, | 49 | .driver_data = ATC20K1, |