diff options
author | Jaroslav Kysela <perex@suse.cz> | 2006-03-22 05:02:08 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-03-22 05:02:08 -0500 |
commit | 5501972e0b5857bc8354770d900ceb9b40c7f6b7 (patch) | |
tree | ff239422827c4cd54d2998f8851304255de31b38 /drivers/media/video/cx88/cx88-alsa.c | |
parent | 9d2f928ddf64ca0361562e30faf584cd33055c60 (diff) | |
parent | e952f31bce6e9f64db01f607abc46529ba57ac9e (diff) |
Merge with rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Diffstat (limited to 'drivers/media/video/cx88/cx88-alsa.c')
-rw-r--r-- | drivers/media/video/cx88/cx88-alsa.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/video/cx88/cx88-alsa.c b/drivers/media/video/cx88/cx88-alsa.c index c841914c0244..3170b8f72c68 100644 --- a/drivers/media/video/cx88/cx88-alsa.c +++ b/drivers/media/video/cx88/cx88-alsa.c | |||
@@ -676,6 +676,11 @@ static int __devinit snd_cx88_create(struct snd_card *card, | |||
676 | chip = (snd_cx88_card_t *) card->private_data; | 676 | chip = (snd_cx88_card_t *) card->private_data; |
677 | 677 | ||
678 | core = cx88_core_get(pci); | 678 | core = cx88_core_get(pci); |
679 | if (NULL == core) { | ||
680 | err = -EINVAL; | ||
681 | kfree (chip); | ||
682 | return err; | ||
683 | } | ||
679 | 684 | ||
680 | if (!pci_dma_supported(pci,0xffffffff)) { | 685 | if (!pci_dma_supported(pci,0xffffffff)) { |
681 | dprintk(0, "%s/1: Oops: no 32bit PCI DMA ???\n",core->name); | 686 | dprintk(0, "%s/1: Oops: no 32bit PCI DMA ???\n",core->name); |
@@ -692,11 +697,6 @@ static int __devinit snd_cx88_create(struct snd_card *card, | |||
692 | spin_lock_init(&chip->reg_lock); | 697 | spin_lock_init(&chip->reg_lock); |
693 | 698 | ||
694 | cx88_reset(core); | 699 | cx88_reset(core); |
695 | if (NULL == core) { | ||
696 | err = -EINVAL; | ||
697 | kfree (chip); | ||
698 | return err; | ||
699 | } | ||
700 | chip->core = core; | 700 | chip->core = core; |
701 | 701 | ||
702 | /* get irq */ | 702 | /* get irq */ |