diff options
author | Pankaj Sharma <pankj.sharma@samsung.com> | 2019-11-19 15:50:38 +0530 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2019-11-22 15:34:37 +0100 |
commit | 0704c57436947c9f9f6472fd1a5ade41fc4c19d8 (patch) | |
tree | e140e3a176cdd6068d3a60b1f0b20e7cb055d765 /drivers/net/can/m_can/m_can_platform.c | |
parent | 2ea872490e18cb0d6558de518d8fc35f5671567d (diff) | |
download | linux-0704c57436947c9f9f6472fd1a5ade41fc4c19d8.tar.bz2 |
can: m_can_platform: remove unnecessary m_can_class_resume() call
The function m_can_runtime_resume() is getting recursively called from
m_can_class_resume(). This results in a lock up.
We need not call m_can_class_resume() during m_can_runtime_resume().
Fixes: f524f829b75a ("can: m_can: Create a m_can platform framework")
Signed-off-by: Pankaj Sharma <pankj.sharma@samsung.com>
Signed-off-by: Sriram Dash <sriram.dash@samsung.com>
Acked-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/m_can/m_can_platform.c')
-rw-r--r-- | drivers/net/can/m_can/m_can_platform.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/can/m_can/m_can_platform.c b/drivers/net/can/m_can/m_can_platform.c index 2eaa3543d233..38ea5e600fb8 100644 --- a/drivers/net/can/m_can/m_can_platform.c +++ b/drivers/net/can/m_can/m_can_platform.c @@ -166,8 +166,6 @@ static int __maybe_unused m_can_runtime_resume(struct device *dev) if (err) clk_disable_unprepare(mcan_class->hclk); - m_can_class_resume(dev); - return err; } |