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 <[email protected]>
---
drivers/media/video/tuner-3036.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
b0a7aec914298ce1ceda98c730c950a08d8f0a99
diff --git a/drivers/media/video/tuner-3036.c b/drivers/media/video/tuner-3036.c
index 7920359..05e4ee2 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
static int __init
tuner3036_init(void)
{
- i2c_add_driver(&i2c_driver_tuner);
- return 0;
+ return i2c_add_driver(&i2c_driver_tuner);
}
static void __exit
--
0.99.9n