summaryrefslogtreecommitdiffstats
path: root/drivers/thermal
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-04-26 10:50:02 +0900
committerEduardo Valentin <edubezval@gmail.com>2017-05-23 20:02:03 -0700
commit0e774888675d7ec693379a228490ce611135cbc2 (patch)
treeb25180421df07ca9320ec31f5b3d6e863aa15de5 /drivers/thermal
parent08332893e37af6ae779367e78e444f8f9571511d (diff)
downloadlinux-0e774888675d7ec693379a228490ce611135cbc2.tar.gz
linux-0e774888675d7ec693379a228490ce611135cbc2.tar.bz2
linux-0e774888675d7ec693379a228490ce611135cbc2.zip
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>
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/qoriq_thermal.c3
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 = {
static int qoriq_tmu_probe(struct platform_device *pdev)
{
int ret;
- const struct thermal_trip *trip;
struct qoriq_tmu_data *data;
struct device_node *np = pdev->dev.of_node;
u32 site = 0;
@@ -243,8 +242,6 @@ static int qoriq_tmu_probe(struct platform_device *pdev)
goto err_tmu;
}
- trip = of_thermal_get_trip_points(data->tz);
-
/* Enable monitoring */
site |= 0x1 << (15 - data->sensor_id);
tmu_write(data, site | TMR_ME | TMR_ALPF, &data->regs->tmr);