thermal: of: fix cooling device weights in device tree
[firefly-linux-kernel-4.4.55.git] / drivers / thermal / db8500_thermal.c
index 20adfbe27df1748bc00e5563cce12828973c8881..2fb273c4baa95b5583052102d793d8b9d288ad44 100644 (file)
@@ -76,7 +76,7 @@ static int db8500_cdev_bind(struct thermal_zone_device *thermal,
                upper = lower = i > max_state ? max_state : i;
 
                ret = thermal_zone_bind_cooling_device(thermal, i, cdev,
-                       upper, lower);
+                       upper, lower, THERMAL_WEIGHT_DEFAULT);
 
                dev_info(&cdev->device, "%s bind to %d: %d-%s\n", cdev->type,
                        i, ret, ret ? "fail" : "succeed");