OSDN Git Service

thermal: rcar_thermal: Handle probe error gracefully
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Tue, 10 Mar 2020 11:47:09 +0000 (12:47 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 20 Mar 2020 11:17:48 +0000 (12:17 +0100)
commit39056e8a989ef52486e063e34b4822b341e47b0e
tree6cab8c428d8a4a11f4dd9aa5e937d2d02b42494e
parenta9d8e61b936dd0cc23398a1e6a7a334d554e11b0
thermal: rcar_thermal: Handle probe error gracefully

If the common register memory resource is not available the driver needs
to fail gracefully to disable PM. Instead of returning the error
directly store it in ret and use the already existing error path.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200310114709.1483860-1-niklas.soderlund+renesas@ragnatech.se
drivers/thermal/rcar_thermal.c