change external variable to is_unsafe_smbus

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1498 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker committed 2002-08-22 00:54:29 +00:00
1 parent b7bd5c3350
commit 0e858bda33
1 file changed
+5 -3
+5 -3
View File
@@ -190,16 +190,18 @@ void dmi_scan_machine(void);
#define IBM_SIGNATURE "IBM" #define IBM_SIGNATURE "IBM"
static int __init ibm_dmi_probe(void) static int __init ibm_dmi_probe(void)
{ {
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,99) #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,99)
extern int is_unsafe_smbus;
return is_unsafe_smbus;
#else
dmi_scan_machine(); dmi_scan_machine();
#endif
if(dmi_ident[DMI_SYS_VENDOR] == NULL) if(dmi_ident[DMI_SYS_VENDOR] == NULL)
return 0; return 0;
if(strncmp(dmi_ident[DMI_SYS_VENDOR], IBM_SIGNATURE, if(strncmp(dmi_ident[DMI_SYS_VENDOR], IBM_SIGNATURE,
strlen(IBM_SIGNATURE)) == 0) strlen(IBM_SIGNATURE)) == 0)
return 1; return 1;
return 0; return 0;
#endif
} }
#endif #endif