patch-2.3.99-pre3 linux/drivers/sbus/char/envctrl.c
Next file: linux/drivers/sbus/char/sunmouse.c
Previous file: linux/drivers/pnp/isapnp.c
Back to the patch index
Back to the overall index
- Lines: 59
- Date:
Wed Mar 22 21:50:29 2000
- Orig file:
v2.3.99-pre2/linux/drivers/sbus/char/envctrl.c
- Orig date:
Thu Feb 10 17:11:12 2000
diff -u --recursive --new-file v2.3.99-pre2/linux/drivers/sbus/char/envctrl.c linux/drivers/sbus/char/envctrl.c
@@ -1,4 +1,4 @@
-/* $Id: envctrl.c,v 1.15 2000/02/09 22:33:23 davem Exp $
+/* $Id: envctrl.c,v 1.16 2000/03/22 21:29:23 ecd Exp $
* envctrl.c: Temperature and Fan monitoring on Machines providing it.
*
* Copyright (C) 1998 Eddie C. Dost (ecd@skynet.be)
@@ -1002,7 +1002,6 @@
return 0;
out:
- envctrl_stop();
return -ENODEV;
}
@@ -1381,7 +1380,7 @@
} else {
err = prom_getproperty(node, "cpu-temp-factors",
envctrl.cpu_temp_table, 256);
- if (err) {
+ if (err < 0) {
printk("envctrl: can't read `cpu-temp-factors'\n");
goto out;
}
@@ -1398,7 +1397,7 @@
} else {
err = prom_getproperty(node, "cpu-fan-speeds",
envctrl.cpu_fan_speeds, 112);
- if (err) {
+ if (err < 0) {
printk("envctrl: can't read `cpu-fan-speeds'\n");
goto out;
}
@@ -1415,7 +1414,7 @@
} else {
err = prom_getproperty(node, "ps-temp-factors",
envctrl.ps_temp_table, 256);
- if (err) {
+ if (err < 0) {
printk("envctrl: can't read `ps-temp-factors'\n");
goto out;
}
@@ -1432,7 +1431,7 @@
} else {
err = prom_getproperty(node, "ps-fan-speeds",
envctrl.ps_fan_speeds, 112);
- if (err) {
+ if (err < 0) {
printk("envctrl: can't read `ps-fan-speeds'\n");
goto out;
}
@@ -1449,8 +1448,6 @@
out:
if (tmp)
kfree(tmp);
-
- envctrl_stop();
return err;
}
#endif /* U450_SUPPORT */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)