Commit 0e774888 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Eduardo Valentin

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: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
parent 08332893
...@@ -195,7 +195,6 @@ static struct thermal_zone_of_device_ops tmu_tz_ops = { ...@@ -195,7 +195,6 @@ static struct thermal_zone_of_device_ops tmu_tz_ops = {
static int qoriq_tmu_probe(struct platform_device *pdev) static int qoriq_tmu_probe(struct platform_device *pdev)
{ {
int ret; int ret;
const struct thermal_trip *trip;
struct qoriq_tmu_data *data; struct qoriq_tmu_data *data;
struct device_node *np = pdev->dev.of_node; struct device_node *np = pdev->dev.of_node;
u32 site = 0; u32 site = 0;
...@@ -243,8 +242,6 @@ static int qoriq_tmu_probe(struct platform_device *pdev) ...@@ -243,8 +242,6 @@ static int qoriq_tmu_probe(struct platform_device *pdev)
goto err_tmu; goto err_tmu;
} }
trip = of_thermal_get_trip_points(data->tz);
/* Enable monitoring */ /* Enable monitoring */
site |= 0x1 << (15 - data->sensor_id); site |= 0x1 << (15 - data->sensor_id);
tmu_write(data, site | TMR_ME | TMR_ALPF, &data->regs->tmr); tmu_write(data, site | TMR_ME | TMR_ALPF, &data->regs->tmr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment