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:
committed by
Takashi Iwai
parent
350a514787
commit
cebe41d4b8
@ -2796,7 +2796,7 @@ static inline void snd_cmipci_proc_init(struct cmipci *cm) {}
|
||||
#endif
|
||||
|
||||
|
||||
static struct pci_device_id snd_cmipci_ids[] = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(snd_cmipci_ids) = {
|
||||
{PCI_VDEVICE(CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8338A), 0},
|
||||
{PCI_VDEVICE(CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8338B), 0},
|
||||
{PCI_VDEVICE(CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8738), 0},
|
||||
@ -3018,7 +3018,7 @@ static int __devinit snd_cmipci_create(struct snd_card *card, struct pci_dev *pc
|
||||
int integrated_midi = 0;
|
||||
char modelstr[16];
|
||||
int pcm_index, pcm_spdif_index;
|
||||
static struct pci_device_id intel_82437vx[] = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(intel_82437vx) = {
|
||||
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82437VX) },
|
||||
{ },
|
||||
};
|
||||
|
Reference in New Issue
Block a user