can: flexcan: avoid unbalanced pm_runtime_enable warning
authorHaibo Chen <haibo.chen@nxp.com>
Tue, 13 Dec 2022 09:43:51 +0000 (17:43 +0800)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 19 Dec 2022 15:08:27 +0000 (16:08 +0100)
commit3bc2afcba81275306adfbfca83f38a52858c5940
tree0156d9c7d6b3ae8c7c88c760cab04218b063353c
parent115dd5469019296040359060743de77071ccb6ec
can: flexcan: avoid unbalanced pm_runtime_enable warning

When do suspend/resume, meet the following warning message:
[   30.028336] flexcan 425b0000.can: Unbalanced pm_runtime_enable!

Balance the pm_runtime_force_suspend() and pm_runtime_force_resume().

Fixes: 8cb53b485f18 ("can: flexcan: add auto stop mode for IMX93 to support wakeup")
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Link: https://lore.kernel.org/all/20221213094351.3023858-1-haibo.chen@nxp.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan/flexcan-core.c