]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
i2c: designware: Use PM_RUNTIME_ACQUIRE()/PM_RUNTIME_ACQUIRE_ERR()
authorXueqin Luo <luoxueqin@kylinos.cn>
Fri, 17 Apr 2026 07:54:51 +0000 (15:54 +0800)
committerAndi Shyti <andi.shyti@kernel.org>
Mon, 27 Apr 2026 10:35:41 +0000 (12:35 +0200)
Use new PM_RUNTIME_ACQUIRE() and PM_RUNTIME_ACQUIRE_ERR() wrapper macros
to make the code look more straightforward.

No intentional functional impact.

Signed-off-by: Xueqin Luo <luoxueqin@kylinos.cn>
Acked-by: Mika Westerberg <mika.westerberg@linx.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20260417075451.5435-1-luoxueqin@kylinos.cn
drivers/i2c/busses/i2c-designware-common.c

index 4dc57fd561703bc12a0c40889841571fd2943e70..4bb0abda0a91a43bafcb9a086fb370a8832d9aa6 100644 (file)
@@ -958,8 +958,8 @@ int i2c_dw_probe(struct dw_i2c_dev *dev)
         * registered to the device core and immediate resume in case bus has
         * registered I2C slaves that do I2C transfers in their probe.
         */
-       ACQUIRE(pm_runtime_noresume, pm)(dev->dev);
-       ret = ACQUIRE_ERR(pm_runtime_noresume, &pm);
+       PM_RUNTIME_ACQUIRE(dev->dev, pm);
+       ret = PM_RUNTIME_ACQUIRE_ERR(&pm);
        if (ret)
                return ret;