thermal: add thermal meson cooldev point check

PD#170391: thermal: add thermal meson cooldev point check.

Change-Id: I9aa705a764399670583cb51e0dc8b743ec80fd54
Signed-off-by: Huan Biao <huan.biao@amlogic.com>
This commit is contained in:
Huan Biao
2018-08-02 15:07:46 +08:00
committed by Jianxin Pan
parent 8342aed2ee
commit d483a76307

View File

@@ -212,13 +212,13 @@ int meson_cooldev_min_update(struct platform_device *pdev, int index)
int ret;
int cpu, c_id;
cool = get_cool_dev_by_node(pdev, cdev->np);
if (!cool)
return -ENODEV;
if (!cdev)
return -ENODEV;
cool = get_cool_dev_by_node(pdev, cdev->np);
if (!cool)
return -ENODEV;
if (cool->min_state == 0)
return 0;