aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/can/m_can/Makefile
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2020-10-23 14:58:00 +0300
committerMarc Kleine-Budde <mkl@pengutronix.de>2020-12-10 10:39:36 +0100
commit227619c3ff7c71eab76848b3b2add06838f5b6e6 (patch)
tree443db8f24707a94d39b70298536693814ccff69f /drivers/net/can/m_can/Makefile
parentcan: m_can: m_can_config_endisable(): remove double clearing of clock stop request bit (diff)
downloadlinux-dev-227619c3ff7c71eab76848b3b2add06838f5b6e6.tar.xz
linux-dev-227619c3ff7c71eab76848b3b2add06838f5b6e6.zip
can: m_can: move runtime PM enable/disable to m_can_platform
This is a preparatory patch for upcoming PCI based M_CAN devices. The current PM implementation would cause PCI based drivers to enable PM twice, once when the PCI device is added and a second time in m_can_class_register(). This will cause 'Unbalanced pm_runtime_enable!' to be logged, and is a situation that should be avoided. Therefore, in anticipation of PCI devices, move PM enabling out from M_CAN class registration to its only user, the m_can_platform driver. Signed-off-by: Patrik Flykt <patrik.flykt@linux.intel.com> Link: https://lore.kernel.org/r/20201023115800.46538-2-patrik.flykt@linux.intel.com [mkl: m_can_plat_probe(): fix error handling m_can_class_register(): simplify error handling] Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/m_can/Makefile')
0 files changed, 0 insertions, 0 deletions