diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2018-01-16 15:58:53 +0300 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2018-01-16 17:11:34 +0300 |
commit | 63dffc1c699d2b808e7d192ffd67d443be136a56 (patch) | |
tree | 6bd84fe3cddc32d246175a46e5d6c0315e2c8583 /drivers/net/can/m_can | |
parent | 5e520edd91f0cd52f8f9f855bc2c1558e85d30da (diff) | |
download | linux-63dffc1c699d2b808e7d192ffd67d443be136a56.tar.xz |
can: m_can: get rid of function free_m_can_dev()
As the previous patch removed alloc_m_can_dev(), let's get rid of the
corresponding free_m_can_dev() and call free_candev() directly.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/m_can')
-rw-r--r-- | drivers/net/can/m_can/m_can.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/net/can/m_can/m_can.c b/drivers/net/can/m_can/m_can.c index 6c2011bbafb3..f882cd5df4fa 100644 --- a/drivers/net/can/m_can/m_can.c +++ b/drivers/net/can/m_can/m_can.c @@ -1183,11 +1183,6 @@ static int m_can_set_mode(struct net_device *dev, enum can_mode mode) return 0; } -static void free_m_can_dev(struct net_device *dev) -{ - free_candev(dev); -} - /* Checks core release number of M_CAN * returns 0 if an unsupported device is detected * else it returns the release and step coded as: @@ -1689,7 +1684,7 @@ static int m_can_plat_probe(struct platform_device *pdev) goto disable_cclk_ret; failed_free_dev: - free_m_can_dev(dev); + free_candev(dev); disable_cclk_ret: clk_disable_unprepare(cclk); disable_hclk_ret: @@ -1753,7 +1748,7 @@ static int m_can_plat_remove(struct platform_device *pdev) unregister_m_can_dev(dev); platform_set_drvdata(pdev, NULL); - free_m_can_dev(dev); + free_candev(dev); return 0; } |