summaryrefslogtreecommitdiff
path: root/lib/init.c
diff options
context:
space:
mode:
authorkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2006-10-08 15:45:15 +0000
committerkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2006-10-08 15:45:15 +0000
commit7ea3072dc7395b0f6449ab7bfe441f7efe09b7c8 (patch)
tree05f34a04a8d79aa5d3ca9dfe1e2d056e10bd1f8b /lib/init.c
parent54029263856c95bfce9f5ae31dc1aa919dc34f8f (diff)
downloadlm-sensors-7ea3072dc7395b0f6449ab7bfe441f7efe09b7c8.tar.gz
libsensors: Probe for busses before chips. This makes more sense that way,
and may allow for cleanups later. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4198 7894878c-1315-0410-8ee3-d5d059ff63e0
Diffstat (limited to 'lib/init.c')
-rw-r--r--lib/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/init.c b/lib/init.c
index 863c020e..bbf4d768 100644
--- a/lib/init.c
+++ b/lib/init.c
@@ -43,10 +43,10 @@ int sensors_init(FILE *input)
int res;
sensors_cleanup();
if (sensors_init_sysfs()) {
- if ((res = sensors_read_sysfs_chips()) || (res = sensors_read_sysfs_bus()))
+ if ((res = sensors_read_sysfs_bus()) || (res = sensors_read_sysfs_chips()))
return res;
} else {
- if ((res = sensors_read_proc_chips()) || (res = sensors_read_proc_bus()))
+ if ((res = sensors_read_proc_bus()) || (res = sensors_read_proc_chips()))
return res;
}
if ((res = sensors_scanner_init(input)))