forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/hwmon/xgene-hwmon.c
....@@ -1,22 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * APM X-Gene SoC Hardware Monitoring Driver
34 *
45 * Copyright (c) 2016, Applied Micro Circuits Corporation
56 * Author: Loc Ho <lho@apm.com>
67 * Hoan Tran <hotran@apm.com>
7
- *
8
- * This program is free software; you can redistribute it and/or
9
- * modify it under the terms of the GNU General Public License as
10
- * published by the Free Software Foundation; either version 2 of
11
- * the License, or (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
208 *
219 * This driver provides the following features:
2210 * - Retrieve CPU total power (uW)
....@@ -780,6 +768,7 @@
780768 {
781769 struct xgene_hwmon_dev *ctx = platform_get_drvdata(pdev);
782770
771
+ cancel_work_sync(&ctx->workq);
783772 hwmon_device_unregister(ctx->hwmon_dev);
784773 kfifo_free(&ctx->async_msg_fifo);
785774 if (acpi_disabled)