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
@@ -226,7 +226,7 @@ struct rme32 {
|
||||
struct snd_kcontrol *spdif_ctl;
|
||||
};
|
||||
|
||||
static struct pci_device_id snd_rme32_ids[] = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(snd_rme32_ids) = {
|
||||
{PCI_VDEVICE(XILINX_RME, PCI_DEVICE_ID_RME_DIGI32), 0,},
|
||||
{PCI_VDEVICE(XILINX_RME, PCI_DEVICE_ID_RME_DIGI32_8), 0,},
|
||||
{PCI_VDEVICE(XILINX_RME, PCI_DEVICE_ID_RME_DIGI32_PRO), 0,},
|
||||
|
Reference in New Issue
Block a user