aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorAndreas Mohr <andi@lisas.de>2006-10-04 11:15:04 -0400
committerJaroslav Kysela <perex@server.perex.cz>2006-12-20 02:55:29 -0500
commit082d6c673cae6565d874cd9f64ab304edaa8ef66 (patch)
tree91c6e03eea62b622de1acf8dbe8e656e9f0fe7cc /sound/pci
parentf238085415c56618e042252894f2fcc971add645 (diff)
[ALSA] via82xx: add __devinitdata
add __devinitdata to struct whitelist, since it's used within a __devinit function. Add const attribute to iterator variable, too. Compile-tested (no section warnings etc.) and run-tested on vt8233, 2.6.18-mm3 (hopefully applies well to current ALSA). Signed-off-by: Andreas Mohr <andi@lisas.de> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/via82xx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/via82xx.c b/sound/pci/via82xx.c
index 92b0736c0fdb..674b8429247b 100644
--- a/sound/pci/via82xx.c
+++ b/sound/pci/via82xx.c
@@ -2366,7 +2366,7 @@ struct dxs_whitelist {
2366 2366
2367static int __devinit check_dxs_list(struct pci_dev *pci, int revision) 2367static int __devinit check_dxs_list(struct pci_dev *pci, int revision)
2368{ 2368{
2369 static struct dxs_whitelist whitelist[] = { 2369 static struct dxs_whitelist whitelist[] __devinitdata = {
2370 { .subvendor = 0x1005, .subdevice = 0x4710, .action = VIA_DXS_ENABLE }, /* Avance Logic Mobo */ 2370 { .subvendor = 0x1005, .subdevice = 0x4710, .action = VIA_DXS_ENABLE }, /* Avance Logic Mobo */
2371 { .subvendor = 0x1019, .subdevice = 0x0996, .action = VIA_DXS_48K }, 2371 { .subvendor = 0x1019, .subdevice = 0x0996, .action = VIA_DXS_48K },
2372 { .subvendor = 0x1019, .subdevice = 0x0a81, .action = VIA_DXS_NO_VRA }, /* ECS K7VTA3 v8.0 */ 2372 { .subvendor = 0x1019, .subdevice = 0x0a81, .action = VIA_DXS_NO_VRA }, /* ECS K7VTA3 v8.0 */
@@ -2427,7 +2427,7 @@ static int __devinit check_dxs_list(struct pci_dev *pci, int revision)
2427 { .subvendor = 0x4005, .subdevice = 0x4710, .action = VIA_DXS_SRC }, /* MSI K7T266 Pro2 (MS-6380 V2.0) BIOS 3.7 */ 2427 { .subvendor = 0x4005, .subdevice = 0x4710, .action = VIA_DXS_SRC }, /* MSI K7T266 Pro2 (MS-6380 V2.0) BIOS 3.7 */
2428 { } /* terminator */ 2428 { } /* terminator */
2429 }; 2429 };
2430 struct dxs_whitelist *w; 2430 const struct dxs_whitelist *w;
2431 unsigned short subsystem_vendor; 2431 unsigned short subsystem_vendor;
2432 unsigned short subsystem_device; 2432 unsigned short subsystem_device;
2433 2433