thermal: Use thermal_tripless_zone_device_register()
All of the remaining callers of thermal_zone_device_register() can use thermal_tripless_zone_device_register(), so make them do so in order to allow the former to be dropped. No intentional functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:
@@ -609,9 +609,9 @@ static int int3400_thermal_probe(struct platform_device *pdev)
|
||||
|
||||
evaluate_odvp(priv);
|
||||
|
||||
priv->thermal = thermal_zone_device_register("INT3400 Thermal", 0, 0,
|
||||
priv, &int3400_thermal_ops,
|
||||
&int3400_thermal_params, 0, 0);
|
||||
priv->thermal = thermal_tripless_zone_device_register("INT3400 Thermal", priv,
|
||||
&int3400_thermal_ops,
|
||||
&int3400_thermal_params);
|
||||
if (IS_ERR(priv->thermal)) {
|
||||
result = PTR_ERR(priv->thermal);
|
||||
goto free_art_trt;
|
||||
|
||||
Reference in New Issue
Block a user