mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
V4L/DVB (4512): Ks0127: wire up i2c_add_driver() return value
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>
This commit is contained in:
parent
d084aa7067
commit
f70a7a918a
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue