# Re: \[PATCH v2\] can: c\_can: move runtime PM enable/disable to c\_can\_platform

- From: Marc Kleine-Budde \<mkl@pengutronix.de\>
- Date: 2021-03-02 08:36:28 
- List: netdev
- Page: https://ratatoskr.run/netdev/2021/03/6284841
- Thread: https://ratatoskr.run/linux-can/2021/03/6281059/t.md

```text
On 3/2/21 3:55 AM, Tong Zhang wrote:
> Currently doing modprobe c_can_pci will make kernel complain
> "Unbalanced pm_runtime_enable!", this is caused by pm_runtime_enable()
> called before pm is initialized.
> This fix is similar to 227619c3ff7c, move those pm_enable/disable code to
> c_can_platform.
> 
> Signed-off-by: Tong Zhang <redacted>

Applied to linux-can/testing.

Thanks,
Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |

```

## Attachments

- [signature.asc](https://ratatoskr.run/netdev/2021/03/6284841/attachment/0) (application/pgp-signature, 488 bytes)
