diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-04-25 21:50:02 -0400 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2017-05-23 23:02:03 -0400 |
commit | 0e774888675d7ec693379a228490ce611135cbc2 (patch) | |
tree | b25180421df07ca9320ec31f5b3d6e863aa15de5 | |
parent | 08332893e37af6ae779367e78e444f8f9571511d (diff) |
thermal: qoriq: remove useless call for of_thermal_get_trip_points()
Building this driver with W=1 reports:
warning: variable 'trip' set but not used [-Wunused-but-set-variable]
The call for of_thermal_get_trip_points() is useless.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
-rw-r--r-- | drivers/thermal/qoriq_thermal.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/thermal/qoriq_thermal.c b/drivers/thermal/qoriq_thermal.c index 644ba526d9ea..4362a69ac88d 100644 --- a/drivers/thermal/qoriq_thermal.c +++ b/drivers/thermal/qoriq_thermal.c | |||
@@ -195,7 +195,6 @@ static struct thermal_zone_of_device_ops tmu_tz_ops = { | |||
195 | static int qoriq_tmu_probe(struct platform_device *pdev) | 195 | static int qoriq_tmu_probe(struct platform_device *pdev) |
196 | { | 196 | { |
197 | int ret; | 197 | int ret; |
198 | const struct thermal_trip *trip; | ||
199 | struct qoriq_tmu_data *data; | 198 | struct qoriq_tmu_data *data; |
200 | struct device_node *np = pdev->dev.of_node; | 199 | struct device_node *np = pdev->dev.of_node; |
201 | u32 site = 0; | 200 | u32 site = 0; |
@@ -243,8 +242,6 @@ static int qoriq_tmu_probe(struct platform_device *pdev) | |||
243 | goto err_tmu; | 242 | goto err_tmu; |
244 | } | 243 | } |
245 | 244 | ||
246 | trip = of_thermal_get_trip_points(data->tz); | ||
247 | |||
248 | /* Enable monitoring */ | 245 | /* Enable monitoring */ |
249 | site |= 0x1 << (15 - data->sensor_id); | 246 | site |= 0x1 << (15 - data->sensor_id); |
250 | tmu_write(data, site | TMR_ME | TMR_ALPF, &data->regs->tmr); | 247 | tmu_write(data, site | TMR_ME | TMR_ALPF, &data->regs->tmr); |