diff options
Diffstat (limited to 'drivers/media/video/hdpvr/hdpvr-video.c')
-rw-r--r-- | drivers/media/video/hdpvr/hdpvr-video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/hdpvr/hdpvr-video.c b/drivers/media/video/hdpvr/hdpvr-video.c index b5439cabb381..fdd782039e9d 100644 --- a/drivers/media/video/hdpvr/hdpvr-video.c +++ b/drivers/media/video/hdpvr/hdpvr-video.c | |||
@@ -523,7 +523,7 @@ static unsigned int hdpvr_poll(struct file *filp, poll_table *wait) | |||
523 | 523 | ||
524 | mutex_lock(&dev->io_mutex); | 524 | mutex_lock(&dev->io_mutex); |
525 | 525 | ||
526 | if (video_is_unregistered(dev->video_dev)) { | 526 | if (!video_is_registered(dev->video_dev)) { |
527 | mutex_unlock(&dev->io_mutex); | 527 | mutex_unlock(&dev->io_mutex); |
528 | return -EIO; | 528 | return -EIO; |
529 | } | 529 | } |