mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 16:44:10 +08:00
thermal: of-thermal: Print name of device node with error
Make it easier to debug devicetree definition in case of errors. Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
This commit is contained in:
parent
8834f5600c
commit
3079f340ca
@ -867,14 +867,14 @@ __init *thermal_of_build_thermal_zone(struct device_node *np)
|
||||
|
||||
ret = of_property_read_u32(np, "polling-delay-passive", &prop);
|
||||
if (ret < 0) {
|
||||
pr_err("missing polling-delay-passive property\n");
|
||||
pr_err("%pOFn: missing polling-delay-passive property\n", np);
|
||||
goto free_tz;
|
||||
}
|
||||
tz->passive_delay = prop;
|
||||
|
||||
ret = of_property_read_u32(np, "polling-delay", &prop);
|
||||
if (ret < 0) {
|
||||
pr_err("missing polling-delay property\n");
|
||||
pr_err("%pOFn: missing polling-delay property\n", np);
|
||||
goto free_tz;
|
||||
}
|
||||
tz->polling_delay = prop;
|
||||
|
Loading…
Reference in New Issue
Block a user