Commit cd86e3b5 authored by Wei Yongjun's avatar Wei Yongjun Committed by Mauro Carvalho Chehab
Browse files

[media] cx88: use correct pci drvdata type in cx88_audio_finidev()



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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent a49de26a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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--;
}