Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268430
b: refs/heads/master
c: 788d0f3
h: refs/heads/master
v: v3
  • Loading branch information
Leonid V. Fedorenchik authored and Greg Kroah-Hartman committed Sep 16, 2011
1 parent 2c75c0e commit 13f7324
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 69dfe45f7bae456fdee207be49eb1826172a5b16
refs/heads/master: 788d0f33b990d10ad2542ee1dce8a0ebf2fcc335
23 changes: 11 additions & 12 deletions trunk/drivers/staging/cx25821/cx25821-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,8 @@ int cx25821_video_irq(struct cx25821_dev *dev, int chan_num, u32 status)
if (status & 0x10) {
dprintk(2, "stopper video\n");
spin_lock(&dev->slock);
cx25821_restart_video_queue(dev,
&dev->channels[channel->i].vidq,
channel);
cx25821_restart_video_queue(dev,
&dev->channels[channel->i].vidq, channel);
spin_unlock(&dev->slock);
handled++;
}
Expand All @@ -449,18 +448,18 @@ void cx25821_video_unregister(struct cx25821_dev *dev, int chan_num)
{
cx_clear(PCI_INT_MSK, 1);

if (dev->channels[chan_num].video_dev) {
if (video_is_registered(dev->channels[chan_num].video_dev))
video_unregister_device(
dev->channels[chan_num].video_dev);
if (dev->channels[chan_num].video_dev) {
if (video_is_registered(dev->channels[chan_num].video_dev))
video_unregister_device(
dev->channels[chan_num].video_dev);
else
video_device_release(
dev->channels[chan_num].video_dev);
video_device_release(
dev->channels[chan_num].video_dev);

dev->channels[chan_num].video_dev = NULL;
dev->channels[chan_num].video_dev = NULL;

btcx_riscmem_free(dev->pci,
&dev->channels[chan_num].vidq.stopper);
btcx_riscmem_free(dev->pci,
&dev->channels[chan_num].vidq.stopper);

pr_warn("device %d released!\n", chan_num);
}
Expand Down

0 comments on commit 13f7324

Please sign in to comment.