• Jean Delvare's avatar
    i2c-sibyte: Fix an error path · 5cd6e675
    Jean Delvare authored
    If the registration of the second I2C channel fails, we really want to
    unregister the first one before we return with an error.
    
    While we're here, fix the printk right above so that it displays the
    real driver name.
    Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
    Cc: Ralf Baechle <ralf@linux-mips.org>
    5cd6e675
i2c-sibyte.c 6.21 KB