]> git.baikalelectronics.ru Git - kernel.git/commit
can: mcp251xfd: mcp251xfd_open(): make use of pm_runtime_resume_and_get()
authorMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 25 Apr 2021 19:39:19 +0000 (21:39 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sat, 8 Jan 2022 19:17:41 +0000 (20:17 +0100)
commitfa6c0f254b5da9ad84839cd20b7e1e03f137af2b
tree7f522c3860b64e4fa0708537b2055e99585d221c
parentdb5f35c78d7528d6c03116d42be9eb1929af85f5
can: mcp251xfd: mcp251xfd_open(): make use of pm_runtime_resume_and_get()

With patch

c4a28fe77ffc PM: runtime: Add pm_runtime_resume_and_get to deal with usage counter

the usual pm_runtime_get_sync() and pm_runtime_put_noidle()
in-case-of-error dance is no longer needed. Convert the mcp251xfd
driver to use this function.

Link: https://lore.kernel.org/all/20220105154300.1258636-6-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c