summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx18/cx18-driver.c
diff options
context:
space:
mode:
authorAndy Walls <awalls@radix.net>2008-10-18 15:20:25 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-21 18:20:47 +0200
commit9b4a7c8a83899ef7742f63c0e9a8a28cbff2c29a (patch)
tree46c9bb40a4734d5a0a4769c8e4b6599ec40c84d6 /drivers/media/video/cx18/cx18-driver.c
parentV4L/DVB (9298): cx18: Add __iomem address space qualifier to cx18_log_*_retri... (diff)
downloadlinux-9b4a7c8a83899ef7742f63c0e9a8a28cbff2c29a.tar.xz
linux-9b4a7c8a83899ef7742f63c0e9a8a28cbff2c29a.zip
V4L/DVB (9299): cx18: Don't mask many real init error codes by mapping them to ENOMEM
Changes to let error return codes bubble up to the user visible error message on card initialization. A number of them were being remapped to ENOMEM when no memory or array resource shortage existed. That hampered diagnosis of user trouble reports. Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx18/cx18-driver.c')
-rw-r--r--drivers/media/video/cx18/cx18-driver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/cx18/cx18-driver.c b/drivers/media/video/cx18/cx18-driver.c
index ef60f561d956..7a1a7830a6b3 100644
--- a/drivers/media/video/cx18/cx18-driver.c
+++ b/drivers/media/video/cx18/cx18-driver.c
@@ -699,7 +699,8 @@ static int __devinit cx18_probe(struct pci_dev *dev,
/* active i2c */
CX18_DEBUG_INFO("activating i2c...\n");
- if (init_cx18_i2c(cx)) {
+ retval = init_cx18_i2c(cx);
+ if (retval) {
CX18_ERR("Could not initialize i2c\n");
goto free_map;
}