* [PATCH 2.6] drivers/media/video/tda9875.c: ACK return on
@ 2005-05-19 6:25 Arthur Othieno
0 siblings, 0 replies; only message in thread
From: Arthur Othieno @ 2005-05-19 6:25 UTC (permalink / raw)
To: lm-sensors
Hi,
i2c_add_driver() may actually fail, but this driver returns 0
regardless. Against 2.6.7. Thanks.
Signed-off-by: Arthur Othieno <a.othieno@bluewin.ch>
tda9875.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
--- a/drivers/media/video/tda9875.c 2004-06-17 17:29:45.000000000 +0200
+++ b/drivers/media/video/tda9875.c 2004-06-17 17:31:21.000000000 +0200
@@ -403,13 +403,12 @@ static struct i2c_client client_template
.driver = &driver,
};
-static int tda9875_init(void)
+static int __init tda9875_init(void)
{
- i2c_add_driver(&driver);
- return 0;
+ return i2c_add_driver(&driver);
}
-static void tda9875_fini(void)
+static void __exit tda9875_fini(void)
{
i2c_del_driver(&driver);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-05-19 6:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-19 6:25 [PATCH 2.6] drivers/media/video/tda9875.c: ACK return on Arthur Othieno
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.