V4L/DVB (12834): tm6000: Fix two warnings
authorMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 11 Jan 2008 16:55:45 +0000 (13:55 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 May 2010 03:40:13 +0000 (00:40 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/tm6000/tm6000-alsa.c
drivers/staging/tm6000/tm6000.h

index 2e48bb27a55443550caa15834c0e008c184d86c2..052e2cc255f59101e3cf060902832beaa61878de 100644 (file)
@@ -333,20 +333,11 @@ static int __devinit snd_tm6000_pcm(struct snd_tm6000_card *chip,
                        Basic Flow for Sound Devices
  ****************************************************************************/
 
-
-/*
- * Component Destructor
- */
-static void snd_tm6000_dev_free(struct snd_card *card)
-{
-}
-
-
 /*
  * Alsa Constructor - Component probe
  */
 
-static int tm6000_audio_init(struct tm6000_core *dev, int idx)
+int tm6000_audio_init(struct tm6000_core *dev, int idx)
 {
        struct snd_card         *card;
        struct snd_tm6000_card  *chip;
@@ -419,4 +410,5 @@ error:
        snd_card_free(card);
        return rc;
 }
+EXPORT_SYMBOL_GPL(tm6000_audio_init);
 
index 0032a418b28e786585cee7db8dc89c0e2a12e1d3..3bf4e018ded5d3b8b79801d01de6967cdd71ce86 100644 (file)
@@ -252,6 +252,10 @@ unsigned int tm6000_v4l2_poll(struct file *file,
                              struct poll_table_struct *wait);
 int tm6000_queue_init(struct tm6000_core *dev);
 
+/* In tm6000-alsa.c */
+int tm6000_audio_init(struct tm6000_core *dev, int idx);
+
+
 /* Debug stuff */
 
 extern int tm6000_debug;