Skip to contentSkip to conversation

v4l: don't ignore return from i2c_add_driver() for tuner-3036

PATCH New Arthur Othieno 1 participant 1 message Dec 20, 2005 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 v4l: 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.

---

 drivers/media/video/tuner-3036.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

b0a7aec914298ce1ceda98c730c950a08d8f0a99

drivers/media/video/tuner-3036.c +1 -2
index 7920359..05e4ee2 100644
@@ -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
Signature · 1 line
0.99.9n