summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/ks0127.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-08-22 09:57:24 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-08-22 09:57:24 -0300
commitcb73e06fc50c861fda76a2f77ecdcfcc55606fa5 (patch)
tree33a4c08b1f5985838363509783ed82789a37a284 /linux/drivers/media/video/ks0127.c
parent680ddb43e12202d9ffff188f9cd0e68e2d32ecaa (diff)
downloadmediapointer-dvb-s2-cb73e06fc50c861fda76a2f77ecdcfcc55606fa5.tar.gz
mediapointer-dvb-s2-cb73e06fc50c861fda76a2f77ecdcfcc55606fa5.tar.bz2
ks0127: wire up i2c_add_driver() return value
From: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/ks0127.c')
-rw-r--r--linux/drivers/media/video/ks0127.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/video/ks0127.c b/linux/drivers/media/video/ks0127.c
index 3bf7ac4f5..c1a377f79 100644
--- a/linux/drivers/media/video/ks0127.c
+++ b/linux/drivers/media/video/ks0127.c
@@ -832,8 +832,7 @@ static int ks0127_detach(struct i2c_client *client)
static int __devinit ks0127_init_module(void)
{
init_reg_defaults();
- i2c_add_driver(&i2c_driver_ks0127);
- return 0;
+ return i2c_add_driver(&i2c_driver_ks0127);
}
static void __devexit ks0127_cleanup_module(void)