Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=082d6c673cae6565d874cd9f64ab304edaa8ef66
Commit:     082d6c673cae6565d874cd9f64ab304edaa8ef66
Parent:     f238085415c56618e042252894f2fcc971add645
Author:     Andreas Mohr <[EMAIL PROTECTED]>
AuthorDate: Wed Oct 4 17:15:04 2006 +0200
Committer:  Jaroslav Kysela <[EMAIL PROTECTED]>
CommitDate: Wed Dec 20 08:55:29 2006 +0100

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>
    Signed-off-by: Jaroslav Kysela <[EMAIL PROTECTED]>
---
 sound/pci/via82xx.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/pci/via82xx.c b/sound/pci/via82xx.c
index 92b0736..674b842 100644
--- a/sound/pci/via82xx.c
+++ b/sound/pci/via82xx.c
@@ -2366,7 +2366,7 @@ struct dxs_whitelist {
 
 static int __devinit check_dxs_list(struct pci_dev *pci, int revision)
 {
-       static struct dxs_whitelist whitelist[] = {
+       static struct dxs_whitelist whitelist[] __devinitdata = {
                { .subvendor = 0x1005, .subdevice = 0x4710, .action = 
VIA_DXS_ENABLE }, /* Avance Logic Mobo */
                { .subvendor = 0x1019, .subdevice = 0x0996, .action = 
VIA_DXS_48K },
                { .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)
                { .subvendor = 0x4005, .subdevice = 0x4710, .action = 
VIA_DXS_SRC },    /* MSI K7T266 Pro2 (MS-6380 V2.0) BIOS 3.7 */
                { } /* terminator */
        };
-       struct dxs_whitelist *w;
+       const struct dxs_whitelist *w;
        unsigned short subsystem_vendor;
        unsigned short subsystem_device;
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to