summaryrefslogtreecommitdiff
path: root/linux/drivers/media/common/saa7146_fops.c
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2003-02-27 14:37:07 +0000
committerMichael Hunold <devnull@localhost>2003-02-27 14:37:07 +0000
commiteedc7fd38fcda5ad3f241225580db5189faae05a (patch)
tree33a6d3de2d7123dfcdea9388bbb2ac1919079bbf /linux/drivers/media/common/saa7146_fops.c
parentb8852a2112a64e58ed0a6a0b513e55eeceeb75ca (diff)
downloadmediapointer-dvb-s2-eedc7fd38fcda5ad3f241225580db5189faae05a.tar.gz
mediapointer-dvb-s2-eedc7fd38fcda5ad3f241225580db5189faae05a.tar.bz2
- fix some bugs that appeared in system with both analog and digital
based saa7146 cards - change the initialization order to allow static builds of the mxb driver
Diffstat (limited to 'linux/drivers/media/common/saa7146_fops.c')
-rw-r--r--linux/drivers/media/common/saa7146_fops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/common/saa7146_fops.c b/linux/drivers/media/common/saa7146_fops.c
index 217b85f14..9048bc339 100644
--- a/linux/drivers/media/common/saa7146_fops.c
+++ b/linux/drivers/media/common/saa7146_fops.c
@@ -193,14 +193,14 @@ int fops_open(struct inode *inode, struct file *file)
dev = h;
}
}
- DEB_D(("using: %p\n",dev));
-
if (NULL == dev) {
DEB_S(("no such video device.\n"));
result = -ENODEV;
goto out;
}
+ DEB_D(("using: %p\n",dev));
+
/* check if an extension is registered */
if( NULL == dev->ext ) {
DEB_S(("no extension registered for this device.\n"));