Module: xenomai-3
Branch: master
Commit: 584f825fd0c7dcf1d7d4ad6f59e253d935c88b5d
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=584f825fd0c7dcf1d7d4ad6f59e253d935c88b5d

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon Oct  5 14:06:54 2015 +0200

drivers/can/flexcan: leave management of references to devm

Echoes commit 1994454 from Xenomai 2.6.

---

 kernel/drivers/can/rtcan_flexcan.c |    8 --------
 1 file changed, 8 deletions(-)

diff --git a/kernel/drivers/can/rtcan_flexcan.c 
b/kernel/drivers/can/rtcan_flexcan.c
index 27c856d..ac88d07 100644
--- a/kernel/drivers/can/rtcan_flexcan.c
+++ b/kernel/drivers/can/rtcan_flexcan.c
@@ -996,12 +996,6 @@ static void unregister_flexcandev(struct rtcan_device *dev)
        rtcan_dev_unregister(dev);
 }
 
-static void put_clocks(struct flexcan_priv *priv)
-{
-       clk_put(priv->clk_per);
-       clk_put(priv->clk_ipg);
-}
-
 static struct of_device_id flexcan_of_match[] = {
        { .compatible = "fsl,p1010-flexcan", .data = &fsl_p1010_devtype_data, },
        { .compatible = "fsl,imx28-flexcan", .data = &fsl_imx28_devtype_data, },
@@ -1125,7 +1119,6 @@ out_register:
 out_map:
        release_mem_region(mem->start, mem_size);
 out_get:
-       put_clocks(priv);
        rtcan_dev_free(dev);
 
        return err;
@@ -1143,7 +1136,6 @@ static int flexcan_remove(struct platform_device *pdev)
 
        mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        release_mem_region(mem->start, resource_size(mem));
-       put_clocks(priv);
 
        rtcan_dev_free(dev);
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to