Skip to content

Commit 082d6c6

Browse files
andim2Jaroslav Kysela
authored andcommitted
[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>
1 parent f238085 commit 082d6c6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎sound/pci/via82xx.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2366,7 +2366,7 @@ struct dxs_whitelist {
23662366

23672367
static int __devinit check_dxs_list(struct pci_dev *pci, int revision)
23682368
{
2369-
static struct dxs_whitelist whitelist[] = {
2369+
static struct dxs_whitelist whitelist[] __devinitdata = {
23702370
{ .subvendor = 0x1005, .subdevice = 0x4710, .action = VIA_DXS_ENABLE }, /* Avance Logic Mobo */
23712371
{ .subvendor = 0x1019, .subdevice = 0x0996, .action = VIA_DXS_48K },
23722372
{ .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)
24272427
{ .subvendor = 0x4005, .subdevice = 0x4710, .action = VIA_DXS_SRC }, /* MSI K7T266 Pro2 (MS-6380 V2.0) BIOS 3.7 */
24282428
{ } /* terminator */
24292429
};
2430-
struct dxs_whitelist *w;
2430+
const struct dxs_whitelist *w;
24312431
unsigned short subsystem_vendor;
24322432
unsigned short subsystem_device;
24332433

0 commit comments

Comments
 (0)