]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pmdomain: imx93-blk-ctrl: convert to devm_* only
authorMarco Felsch <m.felsch@pengutronix.de>
Mon, 15 Dec 2025 19:18:26 +0000 (20:18 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 1 Apr 2026 11:07:31 +0000 (13:07 +0200)
commit52becc142280eeef828d19f9cd01fd653b588786
tree20bb4f49a51fb728d944510d31f8d78348bdf9d9
parent279eb2dd550f829e1497901146bd2214a28bcd88
pmdomain: imx93-blk-ctrl: convert to devm_* only

Convert the driver to devm_ APIs only by making use of
devm_add_action_or_reset() and devm_pm_runtime_enable() to simplify the
probe error path and to drop the .remove() callback. This also ensures
that the device release order equals the device probe error path order.

Furthermore drop the dev_set_drvdata() usage since the only user was the
.remove() callback which is removed by this commit.

Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/imx/imx93-blk-ctrl.c