| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * APM X-Gene SoC Hardware Monitoring Driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (c) 2016, Applied Micro Circuits Corporation |
|---|
| 5 | 6 | * Author: Loc Ho <lho@apm.com> |
|---|
| 6 | 7 | * 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/>. |
|---|
| 20 | 8 | * |
|---|
| 21 | 9 | * This driver provides the following features: |
|---|
| 22 | 10 | * - Retrieve CPU total power (uW) |
|---|
| .. | .. |
|---|
| 780 | 768 | { |
|---|
| 781 | 769 | struct xgene_hwmon_dev *ctx = platform_get_drvdata(pdev); |
|---|
| 782 | 770 | |
|---|
| 771 | + cancel_work_sync(&ctx->workq); |
|---|
| 783 | 772 | hwmon_device_unregister(ctx->hwmon_dev); |
|---|
| 784 | 773 | kfifo_free(&ctx->async_msg_fifo); |
|---|
| 785 | 774 | if (acpi_disabled) |
|---|