• Luiz Capitulino's avatar
    [PATCH] I2C: i2c/i2c-dev.c::i2c_dev_init() cleanup. · 1eaad3da
    Luiz Capitulino authored
     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: default avatarLuiz Capitulino <lcapitulino@prefeitura.sp.gov.br>
    Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
    1eaad3da
i2c-dev.c 14.4 KB