]> git.baikalelectronics.ru Git - kernel.git/commitdiff
can: m_can: m_can_class_unregister(): remove erroneous m_can_clk_stop()
authorMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 15 Dec 2020 10:32:37 +0000 (11:32 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 7 Jan 2021 08:27:19 +0000 (09:27 +0100)
In m_can_class_register() the clock is started, but stopped on exit. When
calling m_can_class_unregister(), the clock is stopped a second time.

This patch removes the erroneous m_can_clk_stop() in  m_can_class_unregister().

Fixes: 0b2c8dae4b28 ("can: m_can: Create a m_can platform framework")
Cc: Dan Murphy <dmurphy@ti.com>
Cc: Sriram Dash <sriram.dash@samsung.com>
Reviewed-by: Sean Nyekjaer <sean@geanix.com>
Link: https://lore.kernel.org/r/20201215103238.524029-2-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/m_can.c

index 2c9f1240127600b8aa62085cd698621e16a8c8b7..da551fd0f5026426170589f030bb686abdd879a8 100644 (file)
@@ -1852,8 +1852,6 @@ EXPORT_SYMBOL_GPL(m_can_class_register);
 void m_can_class_unregister(struct m_can_classdev *cdev)
 {
        unregister_candev(cdev->net);
-
-       m_can_clk_stop(cdev);
 }
 EXPORT_SYMBOL_GPL(m_can_class_unregister);