[PATCH] i2c: i2c-rzv2m: fix runtime PM cleanup

From: Jiawen Liu

Date: Tue Aug 18 2026 - 09:20:00 EST


Update rzv2m_i2c_probe() for the confirmed driver lifecycle defect.

Keep the change limited to the concrete operation shown in the final
patch.

Signed-off-by: jiawen <1298662399@xxxxxx>
---
diff --git a/drivers/i2c/busses/i2c-rzv2m.c b/drivers/i2c/busses/i2c-rzv2m.c
--- a/drivers/i2c/busses/i2c-rzv2m.c
+++ b/drivers/i2c/busses/i2c-rzv2m.c
@@ -461,7 +461,12 @@

pm_runtime_enable(dev);

- pm_runtime_get_sync(dev);
+ ret = pm_runtime_get_sync(dev);
+ if (ret < 0) {
+ pm_runtime_put_noidle(dev);
+ return ret;
+ }
+
rzv2m_i2c_init(priv);
pm_runtime_put(dev);