hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/macintosh/windfarm_rm31.c
....@@ -1,10 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Windfarm PowerMac thermal control.
34 * Control loops for RackMack3,1 (Xserve G5)
45 *
56 * Copyright (C) 2012 Benjamin Herrenschmidt, IBM Corp.
6
- *
7
- * Use and redistribute under the terms of the GNU GPL v2.
87 */
98 #include <linux/types.h>
109 #include <linux/errno.h>
....@@ -282,8 +281,8 @@
282281 for (i = 0; i < 3; i++) {
283282 err = wf_control_set(cpu_fans[cpu][i], speed);
284283 if (err) {
285
- pr_warning("wf_rm31: Fan %s reports error %d\n",
286
- cpu_fans[cpu][i]->name, err);
284
+ pr_warn("wf_rm31: Fan %s reports error %d\n",
285
+ cpu_fans[cpu][i]->name, err);
287286 failure_state |= FAILURE_FAN;
288287 }
289288 }
....@@ -466,7 +465,7 @@
466465
467466 err = wf_sensor_get(slots_temp, &temp);
468467 if (err) {
469
- pr_warning("wf_rm31: slots temp sensor error %d\n", err);
468
+ pr_warn("wf_rm31: slots temp sensor error %d\n", err);
470469 failure_state |= FAILURE_SENSOR;
471470 wf_control_set_max(slots_fan);
472471 return;