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>
This commit is contained in:

zatwierdzone przez
Takashi Iwai

rodzic
350a514787
commit
cebe41d4b8
@@ -205,7 +205,7 @@ struct fm801 {
|
||||
#endif
|
||||
};
|
||||
|
||||
static struct pci_device_id snd_fm801_ids[] = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(snd_fm801_ids) = {
|
||||
{ 0x1319, 0x0801, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, 0, }, /* FM801 */
|
||||
{ 0x5213, 0x0510, PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_MULTIMEDIA_AUDIO << 8, 0xffff00, 0, }, /* Gallant Odyssey Sound 4 */
|
||||
{ 0, }
|
||||
|
Reference in New Issue
Block a user