* [PATCH] v4l: don't ignore return from i2c_add_driver() for tuner-3036
@ 2005-12-20 3:07 Arthur Othieno
0 siblings, 0 replies; only message in thread
From: Arthur Othieno @ 2005-12-20 3:07 UTC (permalink / raw)
To: akpm; +Cc: philb, linux-kernel
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>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2005-12-20 3:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-20 3:07 [PATCH] v4l: don't ignore return from i2c_add_driver() for tuner-3036 Arthur Othieno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox