summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-06-03 13:45:41 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-08-02 14:05:50 -0300
commit0e57ff8d5c3d98abbd2137872a8e663e553a7245 (patch)
treee39b4f94ea05f6e8ff3831101a314d04475ad6e1 /drivers
parent66e89522aff70fb2701ba8f6845fdcd365dd2ade (diff)
downloadlinux-0e57ff8d5c3d98abbd2137872a8e663e553a7245.tar.gz
linux-0e57ff8d5c3d98abbd2137872a8e663e553a7245.tar.bz2
linux-0e57ff8d5c3d98abbd2137872a8e663e553a7245.zip
V4L/DVB: tm6000: Avoid OOPS when loading tm6000-alsa module
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/tm6000/tm6000-alsa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/tm6000/tm6000-alsa.c b/drivers/staging/tm6000/tm6000-alsa.c
index da221e22e27f..04e6f7a3b9f1 100644
--- a/drivers/staging/tm6000/tm6000-alsa.c
+++ b/drivers/staging/tm6000/tm6000-alsa.c
@@ -40,7 +40,7 @@
****************************************************************************/
static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
-static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */
+
static int enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 1};
module_param_array(enable, bool, NULL, 0444);
@@ -317,7 +317,7 @@ int tm6000_audio_init(struct tm6000_core *dev)
if (!enable[devnr])
return -ENOENT;
- rc = snd_card_create(index[devnr], id[devnr], THIS_MODULE, 0, &card);
+ rc = snd_card_create(index[devnr], "tm6000", THIS_MODULE, 0, &card);
if (rc < 0) {
snd_printk(KERN_ERR "cannot create card instance %d\n", devnr);
return rc;