diff options
author | Andy Walls <awalls@radix.net> | 2008-10-18 09:20:25 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-21 12:20:47 -0400 |
commit | 9b4a7c8a83899ef7742f63c0e9a8a28cbff2c29a (patch) | |
tree | 46c9bb40a4734d5a0a4769c8e4b6599ec40c84d6 /drivers/media/video/cx18/cx18-driver.c | |
parent | 06869713de3e6380b2f24d9eac30426b4e471375 (diff) |
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.c | 3 |
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, | |||
699 | 699 | ||
700 | /* active i2c */ | 700 | /* active i2c */ |
701 | CX18_DEBUG_INFO("activating i2c...\n"); | 701 | CX18_DEBUG_INFO("activating i2c...\n"); |
702 | if (init_cx18_i2c(cx)) { | 702 | retval = init_cx18_i2c(cx); |
703 | if (retval) { | ||
703 | CX18_ERR("Could not initialize i2c\n"); | 704 | CX18_ERR("Could not initialize i2c\n"); |
704 | goto free_map; | 705 | goto free_map; |
705 | } | 706 | } |