forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/platform/x86/intel_bxtwc_tmu.c
....@@ -1,21 +1,12 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
2
- * intel_bxtwc_tmu.c - Intel BXT Whiskey Cove PMIC TMU driver
3
+ * Intel BXT Whiskey Cove PMIC TMU driver
34 *
45 * Copyright (C) 2016 Intel Corporation. All rights reserved.
56 *
67 * This driver adds TMU (Time Management Unit) support for Intel BXT platform.
78 * It enables the alarm wake-up functionality in the TMU unit of Whiskey Cove
89 * PMIC.
9
- *
10
- * This program is free software; you can redistribute it and/or
11
- * modify it under the terms of the GNU General Public License version
12
- * 2 as published by the Free Software Foundation.
13
- *
14
- * This program is distributed in the hope that it will be useful,
15
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
- * GNU General Public License for more details.
18
- *
1910 */
2011
2112 #include <linux/module.h>
....@@ -69,11 +60,8 @@
6960 wctmu->regmap = pmic->regmap;
7061
7162 irq = platform_get_irq(pdev, 0);
72
-
73
- if (irq < 0) {
74
- dev_err(&pdev->dev, "invalid irq %d\n", irq);
63
+ if (irq < 0)
7564 return irq;
76
- }
7765
7866 regmap_irq_chip = pmic->irq_chip_data_tmu;
7967 virq = regmap_irq_get_virq(regmap_irq_chip, irq);