]> git.baikalelectronics.ru Git - kernel.git/commit
mailbox: imx: Disable the clock on devm_mbox_controller_register() failure
authorFabio Estevam <festevam@gmail.com>
Sat, 30 May 2020 22:56:28 +0000 (17:56 -0500)
committerJassi Brar <jaswinder.singh@linaro.org>
Sat, 30 May 2020 22:58:39 +0000 (17:58 -0500)
commit29fd0062a85e585b826f9e7fda3820edb888bee1
treefd0eafe3bf82b9c5d2911ba1fb94ef81891b9017
parentabcb67b4c72f299c2beaac6827fa9828d2f3c8b5
mailbox: imx: Disable the clock on devm_mbox_controller_register() failure

devm_mbox_controller_register() may fail, and in the case of failure the
priv->clk clock that was previously enabled, should be disabled.

Fixes: 367077bc4a69 ("mailbox: Add support for i.MX messaging unit")
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Acked-by: Oleksij Rempel <o.rempel@pengutronix.de>
[Jassi: fixed merge/am conflict]
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/imx-mailbox.c