]> git.hungrycats.org Git - linux/commit
[PATCH] I2C: i2c/i2c-dev.c::i2c_dev_init() cleanup.
authorLuiz Capitulino <lcapitulino@prefeitura.sp.gov.br>
Thu, 8 Jul 2004 09:07:27 +0000 (02:07 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 8 Jul 2004 09:07:27 +0000 (02:07 -0700)
commit1eaad3da3c3fa3e9819c8242fb278bfe66a57e72
tree79ef076e7a0925e9f56ceb89954e609549442abc
parent82f6ee759150454cdb5f27c92b1290b8c7487c6b
[PATCH] I2C: i2c/i2c-dev.c::i2c_dev_init() cleanup.

 This patch does the fallowing cleanup for
drivers/i2c/i2c-dev.c::i2c_dev_init():

*) in a error condition, return the error code of register_chrdev()
insted of -EIO;
*) adds missing audit for class_register();
*) in a error condition, only prints "Driver Initialisation Failed",
insted printing the cause. (Note that the error will be printed by
the return of the error code, and the information about what function
caused the problem need to be done by a debug code).

 Only compiled, lack of hardware.

Signed-off-by: Luiz Capitulino <lcapitulino@prefeitura.sp.gov.br>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/i2c/i2c-dev.c