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:
@@ -418,7 +418,7 @@ module_param_array(enable, bool, NULL, 0444);
|
||||
MODULE_PARM_DESC(enable, "Enable Korg 1212 soundcard.");
|
||||
MODULE_AUTHOR("Haroldo Gamal <gamal@alternex.com.br>");
|
||||
|
||||
static struct pci_device_id snd_korg1212_ids[] = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(snd_korg1212_ids) = {
|
||||
{
|
||||
.vendor = 0x10b5,
|
||||
.device = 0x906d,
|
||||
|
Reference in New Issue
Block a user