Changeset 1498

Show
Ignore:
Timestamp:
08/22/02 02:54:29 (11 years ago)
Author:
mds
Message:

change external variable to is_unsafe_smbus

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/kernel/busses/i2c-piix4.c

    r1478 r1498  
    191191static int __init ibm_dmi_probe(void) 
    192192{ 
    193 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,99) 
    194  
     193#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,99) 
     194        extern int is_unsafe_smbus; 
     195        return is_unsafe_smbus; 
     196#else 
    195197        dmi_scan_machine(); 
    196 #endif 
    197198        if(dmi_ident[DMI_SYS_VENDOR] == NULL) 
    198199                return 0; 
     
    201202                return 1; 
    202203        return 0; 
     204#endif 
    203205} 
    204206#endif