]> err.no Git - linux-2.6/commitdiff
V4L/DVB (3344b): don't ignore return from i2c_add_driver() for tuner-3036
authorArthur Othieno <a.othieno@bluewin.ch>
Wed, 11 Jan 2006 21:41:04 +0000 (19:41 -0200)
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>
Wed, 11 Jan 2006 21:41:04 +0000 (19:41 -0200)
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>
drivers/media/video/tuner-3036.c

index d97f66804c3745362fb97dd70da3392a539a5fcf..c4a78e7a5a58bf3206ccae4f69ee9d7ba3d98580 100644 (file)
@@ -193,8 +193,7 @@ static struct i2c_client client_template =
 static int __init
 tuner3036_init(void)
 {
-       i2c_add_driver(&i2c_driver_tuner);
-       return 0;
+       return i2c_add_driver(&i2c_driver_tuner);
 }
 
 static void __exit