.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | | - * exynos_tmu.c - Samsung EXYNOS TMU (Thermal Management Unit) |
---|
| 3 | + * exynos_tmu.c - Samsung Exynos TMU (Thermal Management Unit) |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2014 Samsung Electronics |
---|
5 | 6 | * Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> |
---|
.. | .. |
---|
8 | 9 | * Copyright (C) 2011 Samsung Electronics |
---|
9 | 10 | * Donggeun Kim <dg77.kim@samsung.com> |
---|
10 | 11 | * Amit Daniel Kachhap <amit.kachhap@linaro.org> |
---|
11 | | - * |
---|
12 | | - * This program is free software; you can redistribute it and/or modify |
---|
13 | | - * it under the terms of the GNU General Public License as published by |
---|
14 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
15 | | - * (at your option) any later version. |
---|
16 | | - * |
---|
17 | | - * This program is distributed in the hope that it will be useful, |
---|
18 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
19 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
20 | | - * GNU General Public License for more details. |
---|
21 | | - * |
---|
22 | | - * You should have received a copy of the GNU General Public License |
---|
23 | | - * along with this program; if not, write to the Free Software |
---|
24 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
---|
25 | | - * |
---|
26 | 12 | */ |
---|
27 | 13 | |
---|
28 | 14 | #include <linux/clk.h> |
---|
.. | .. |
---|
152 | 138 | |
---|
153 | 139 | /** |
---|
154 | 140 | * struct exynos_tmu_data : A structure to hold the private data of the TMU |
---|
155 | | - driver |
---|
| 141 | + * driver |
---|
156 | 142 | * @id: identifier of the one instance of the TMU controller. |
---|
157 | 143 | * @base: base address of the single instance of the TMU controller. |
---|
158 | 144 | * @base_second: base address of the common registers of the TMU controller. |
---|
.. | .. |
---|
176 | 162 | * 0 < reference_voltage <= 31 |
---|
177 | 163 | * @regulator: pointer to the TMU regulator structure. |
---|
178 | 164 | * @reg_conf: pointer to structure to register with core thermal. |
---|
| 165 | + * @tzd: pointer to thermal_zone_device structure |
---|
179 | 166 | * @ntrip: number of supported trip points. |
---|
180 | 167 | * @enabled: current status of TMU device |
---|
| 168 | + * @tmu_set_trip_temp: SoC specific method to set trip (rising threshold) |
---|
| 169 | + * @tmu_set_trip_hyst: SoC specific to set hysteresis (falling threshold) |
---|
181 | 170 | * @tmu_initialize: SoC specific TMU initialization method |
---|
182 | 171 | * @tmu_control: SoC specific TMU control method |
---|
183 | 172 | * @tmu_read: SoC specific TMU temperature read method |
---|
.. | .. |
---|
1106 | 1095 | &exynos_sensor_ops); |
---|
1107 | 1096 | if (IS_ERR(data->tzd)) { |
---|
1108 | 1097 | ret = PTR_ERR(data->tzd); |
---|
1109 | | - dev_err(&pdev->dev, "Failed to register sensor: %d\n", ret); |
---|
| 1098 | + if (ret != -EPROBE_DEFER) |
---|
| 1099 | + dev_err(&pdev->dev, "Failed to register sensor: %d\n", |
---|
| 1100 | + ret); |
---|
1110 | 1101 | goto err_sclk; |
---|
1111 | 1102 | } |
---|
1112 | 1103 | |
---|
.. | .. |
---|
1198 | 1189 | |
---|
1199 | 1190 | module_platform_driver(exynos_tmu_driver); |
---|
1200 | 1191 | |
---|
1201 | | -MODULE_DESCRIPTION("EXYNOS TMU Driver"); |
---|
| 1192 | +MODULE_DESCRIPTION("Exynos TMU Driver"); |
---|
1202 | 1193 | MODULE_AUTHOR("Donggeun Kim <dg77.kim@samsung.com>"); |
---|
1203 | 1194 | MODULE_LICENSE("GPL"); |
---|
1204 | 1195 | MODULE_ALIAS("platform:exynos-tmu"); |
---|