mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 10:09:10 +02:00
i2c: designware: Use PM_RUNTIME_ACQUIRE()/PM_RUNTIME_ACQUIRE_ERR()
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
This commit is contained in:
parent
6d1b0785f6
commit
beec6b0a30
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user