Changeset 5217

Show
Ignore:
Timestamp:
05/01/08 12:53:50 (5 years ago)
Author:
khali
Message:

Fix an error path. If initialization fails, we want to restore the physical
bus, not delete it again. Backported from Linux 2.6.

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r5216 r5217  
    44SVN-HEAD 
    55  Library: Don't choke on unrecognized devices, part 2 
     6  Module i2c-amd756-s4882: Fix an error path (2.6 backport) 
    67  Module i2c-i801: Drop broken I2C block read support 
    78  Module i2c-piix4: Minor cleanups (2.6 backport) 
  • lm-sensors/trunk/kernel/busses/i2c-amd756-s4882.c

    r3292 r5217  
    231231        s4882_adapter = NULL; 
    232232ERROR1: 
    233         i2c_del_adapter(&amd756_smbus); 
     233        /* Restore physical bus */ 
     234        i2c_add_adapter(&amd756_smbus); 
    234235ERROR0: 
    235236        return error;