]> git.baikalelectronics.ru Git - kernel.git/commit
thermal/drivers/rz2gl: Add error check for reset_control_deassert()
authorBiju Das <biju.das.jz@bp.renesas.com>
Wed, 8 Dec 2021 16:40:09 +0000 (16:40 +0000)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 9 Dec 2021 14:58:09 +0000 (15:58 +0100)
commit8392c82f6cd687482a5ba9b8fad56c0897c9bf85
tree8efb51c88f6d08ce9887706eff3924052eb99334
parentd0b298e0970b2e0a5fdf0d26ae7ff5d112999ff2
thermal/drivers/rz2gl: Add error check for reset_control_deassert()

If reset_control_deassert() fails, then we won't be able to access
the device registers. Therefore check the return code of
reset_control_deassert() and bail out in case of error.

While at it replace the parameter "&pdev->dev" -> "dev" in
devm_reset_control_get_exclusive().

Suggested-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://lore.kernel.org/r/20211208164010.4130-1-biju.das.jz@bp.renesas.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/rzg2l_thermal.c