amd7930.c (55fa518867978e1f5fd8353098f80d125ac734d7) | amd7930.c (bd7dd77c2a05c530684eea2e3af16449ae9c5d52) |
---|---|
1/* 2 * Driver for AMD7930 sound chips found on Sparcs. 3 * Copyright (C) 2002, 2008 David S. Miller <davem@davemloft.net> 4 * 5 * Based entirely upon drivers/sbus/audio/amd7930.c which is: 6 * Copyright (C) 1996,1997 Thomas K. Dyas (tdyas@eden.rutgers.edu) 7 * 8 * --- Notes from Thomas's original driver --- --- 1004 unchanged lines hidden (view full) --- 1013 1014 if (dev_num >= SNDRV_CARDS) 1015 return -ENODEV; 1016 if (!enable[dev_num]) { 1017 dev_num++; 1018 return -ENOENT; 1019 } 1020 | 1/* 2 * Driver for AMD7930 sound chips found on Sparcs. 3 * Copyright (C) 2002, 2008 David S. Miller <davem@davemloft.net> 4 * 5 * Based entirely upon drivers/sbus/audio/amd7930.c which is: 6 * Copyright (C) 1996,1997 Thomas K. Dyas (tdyas@eden.rutgers.edu) 7 * 8 * --- Notes from Thomas's original driver --- --- 1004 unchanged lines hidden (view full) --- 1013 1014 if (dev_num >= SNDRV_CARDS) 1015 return -ENODEV; 1016 if (!enable[dev_num]) { 1017 dev_num++; 1018 return -ENOENT; 1019 } 1020 |
1021 card = snd_card_new(index[dev_num], id[dev_num], THIS_MODULE, 0); 1022 if (card == NULL) 1023 return -ENOMEM; | 1021 err = snd_card_create(index[dev_num], id[dev_num], THIS_MODULE, 0, 1022 &card); 1023 if (err < 0) 1024 return err; |
1024 1025 strcpy(card->driver, "AMD7930"); 1026 strcpy(card->shortname, "Sun AMD7930"); 1027 sprintf(card->longname, "%s at 0x%02lx:0x%08Lx, irq %d", 1028 card->shortname, 1029 rp->flags & 0xffL, 1030 (unsigned long long)rp->start, 1031 irq); --- 63 unchanged lines hidden --- | 1025 1026 strcpy(card->driver, "AMD7930"); 1027 strcpy(card->shortname, "Sun AMD7930"); 1028 sprintf(card->longname, "%s at 0x%02lx:0x%08Lx, irq %d", 1029 card->shortname, 1030 rp->flags & 0xffL, 1031 (unsigned long long)rp->start, 1032 irq); --- 63 unchanged lines hidden --- |