linux/drivers/net/can
Marc Kleine-Budde 97760193e8 can: m_can: m_can_plat_remove(): add missing pm_runtime_disable()
[ Upstream commit ba569fb07a ]

Commit 227619c3ff ("can: m_can: move runtime PM enable/disable to
m_can_platform") moved the PM runtime enable from the m_can core
driver into the m_can_platform.

That patch forgot to move the pm_runtime_disable() to
m_can_plat_remove(), so that unloading the m_can_platform driver
causes an "Unbalanced pm_runtime_enable!" error message.

Add the missing pm_runtime_disable() to m_can_plat_remove() to fix the
problem.

Cc: Patrik Flykt <patrik.flykt@linux.intel.com>
Fixes: 227619c3ff ("can: m_can: move runtime PM enable/disable to m_can_platform")
Reviewed-by: Markus Schneider-Pargmann <msp@baylibre.com>
Link: https://patch.msgid.link/20250929-m_can-fix-state-handling-v4-1-682b49b49d9a@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-10-29 14:03:07 +01:00
..
c_can can: c_can: Use of_property_present() to test existence of DT property 2025-06-04 14:38:01 +02:00
cc770 can: do not increase rx statistics when generating a CAN rx error message frame 2024-12-14 19:51:25 +01:00
dev can: dev: add generic function can_eth_ioctl_hwts() 2025-10-02 13:39:11 +02:00
ifi_canfd can: ifi_canfd: ifi_canfd_handle_lec_err(): fix {rx,tx}_errors statistics 2024-12-14 19:51:26 +01:00
m_can can: m_can: m_can_plat_remove(): add missing pm_runtime_disable() 2025-10-29 14:03:07 +01:00
mscan can: do not increase rx statistics when generating a CAN rx error message frame 2024-12-14 19:51:25 +01:00
peak_canfd can: do not increase rx statistics when generating a CAN rx error message frame 2024-12-14 19:51:25 +01:00
rcar can: rcar_can: rcar_can_resume(): fix s2ram with PSCI 2025-10-02 13:39:10 +02:00
sja1000 can: do not increase rx statistics when generating a CAN rx error message frame 2024-12-14 19:51:25 +01:00
softing can: softing: softing_startstop(): fix set but not used variable warning 2022-01-27 11:04:01 +01:00
spi can: hi311x: populate ndo_change_mtu() to prevent buffer overflow 2025-10-02 13:39:11 +02:00
usb can: peak_usb: fix shift-out-of-bounds issue 2025-10-02 13:39:12 +02:00
at91_can.c can: do not increase rx statistics when generating a CAN rx error message frame 2024-12-14 19:51:25 +01:00
flexcan.c can: flexcan: disable transceiver during system PM 2025-04-10 14:32:05 +02:00
grcan.c can: grcan: grcan_probe(): remove extra of_node_get() 2022-07-12 16:34:48 +02:00
janz-ican3.c can: janz-ican3: use DEVICE_ATTR_RO/RW() helper macro 2021-07-25 11:36:26 +02:00
Kconfig can: flexcan: update Kconfig to enable coldfire 2021-07-25 11:36:29 +02:00
kvaser_pciefd.c can: kvaser_pciefd: Store device channel index 2025-08-28 16:24:08 +02:00
led.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
Makefile can: dev: move driver related infrastructure into separate subdir 2021-01-13 09:42:58 +01:00
pch_can.c can: do not increase rx statistics when generating a CAN rx error message frame 2024-12-14 19:51:25 +01:00
slcan.c tty: no checking of tty_unregister_ldisc 2021-05-13 16:57:17 +02:00
sun4i_can.c can: sun4i_can: populate ndo_change_mtu() to prevent buffer overflow 2025-10-02 13:39:12 +02:00
ti_hecc.c can: rx-offload: add skb queue for use during ISR 2021-07-25 11:36:25 +02:00
vcan.c net: introduce CAN specific pointer in the struct net_device 2021-02-24 14:32:15 -08:00
vxcan.c net: validate veth and vxcan peer ifindexes 2023-08-30 16:18:14 +02:00
xilinx_can.c can: xilinx_can: xcan_write_frame(): fix use-after-free of transmitted SKB 2025-10-02 13:39:03 +02:00