mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-24 12:04:33 +00:00
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:
1 parent
b7bd5c3350
commit
0e858bda33
1 file changed
+5
-3
@@ -190,16 +190,18 @@ void dmi_scan_machine(void);
|
||||
#define IBM_SIGNATURE "IBM"
|
||||
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();
|
||||
#endif
|
||||
if(dmi_ident[DMI_SYS_VENDOR] == NULL)
|
||||
return 0;
|
||||
if(strncmp(dmi_ident[DMI_SYS_VENDOR], IBM_SIGNATURE,
|
||||
strlen(IBM_SIGNATURE)) == 0)
|
||||
return 1;
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user