]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i2c: riic: Use pm_runtime_resume_and_get()
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Tue, 20 Aug 2024 10:19:10 +0000 (13:19 +0300)
committerAndi Shyti <andi.shyti@kernel.org>
Mon, 9 Sep 2024 22:34:00 +0000 (00:34 +0200)
commit3149a9cf36cf17411e8564e22ec698b5aa2175c5
tree75ef8f5936469585e1a60316991b25039df7bb33
parenta1ecb041589017ce4e03d92f3b9a92a2a8a37ceb
i2c: riic: Use pm_runtime_resume_and_get()

pm_runtime_get_sync() may return with error. In case it returns with error
dev->power.usage_count needs to be decremented. pm_runtime_resume_and_get()
takes care of this. Thus use it.

Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-riic.c