[media] cx88: use correct pci drvdata type in cx88_audio_finidev()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 21 Nov 2013 03:38:44 +0000 (00:38 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 10 Dec 2013 17:28:59 +0000 (15:28 -0200)
We had set the pci drvdata in cx88_audio_initdev() as a type of
struct snd_card, so cx88_audio_finidev() should used it as the
same type too.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/pci/cx88/cx88-alsa.c

index 400eb1c42d3f9529a946017ec3f6dd4fcae3424c..d014206e71762799ad007ce676af13cef333566a 100644 (file)
@@ -931,9 +931,9 @@ error:
  */
 static void cx88_audio_finidev(struct pci_dev *pci)
 {
-       struct cx88_audio_dev *card = pci_get_drvdata(pci);
+       struct snd_card *card = pci_get_drvdata(pci);
 
-       snd_card_free((void *)card);
+       snd_card_free(card);
 
        devno--;
 }