diff options
author | Arthur Othieno <a.othieno@bluewin.ch> | 2006-01-11 16:41:04 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@brturbo.com.br> | 2006-01-11 16:41:04 -0500 |
commit | d4437d3fada351d7f40bcc48a62c12b92e2ad9d8 (patch) | |
tree | 8e61010ddc3a88d6a347bba66e1b79810281f66d /drivers/media/video/tuner-3036.c | |
parent | 7408187d223f63d46a13b6a35b8f96b032c2f623 (diff) |
V4L/DVB (3344b): don't ignore return from i2c_add_driver() for tuner-3036
The call to i2c_add_driver() may actually fail, but tuner-3036 ignores
this and always returns 0, regardless.
Fix it up so it returns what i2c_add_driver() does, instead.
Signed-off-by: Arthur Othieno <a.othieno@bluewin.ch>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tuner-3036.c')
-rw-r--r-- | drivers/media/video/tuner-3036.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/tuner-3036.c b/drivers/media/video/tuner-3036.c index d97f66804c37..c4a78e7a5a58 100644 --- a/drivers/media/video/tuner-3036.c +++ b/drivers/media/video/tuner-3036.c | |||
@@ -193,8 +193,7 @@ static struct i2c_client client_template = | |||
193 | static int __init | 193 | static int __init |
194 | tuner3036_init(void) | 194 | tuner3036_init(void) |
195 | { | 195 | { |
196 | i2c_add_driver(&i2c_driver_tuner); | 196 | return i2c_add_driver(&i2c_driver_tuner); |
197 | return 0; | ||
198 | } | 197 | } |
199 | 198 | ||
200 | static void __exit | 199 | static void __exit |