Module: xenomai-2.6
Branch: master
Commit: 199445423781daa4a7f1ade46a9e4559aad1468a
URL:    
http://git.xenomai.org/?p=xenomai-2.6.git;a=commit;h=199445423781daa4a7f1ade46a9e4559aad1468a

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Sun Oct  4 13:35:43 2015 +0200

can/flexcan: avoid dereferencing clocks twice

---

 ksrc/drivers/can/rtcan_flexcan.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/ksrc/drivers/can/rtcan_flexcan.c b/ksrc/drivers/can/rtcan_flexcan.c
index f5477db..ddc3708 100644
--- a/ksrc/drivers/can/rtcan_flexcan.c
+++ b/ksrc/drivers/can/rtcan_flexcan.c
@@ -1053,9 +1053,6 @@ static void put_clocks(struct flexcan_priv *priv)
 {
 #if LINUX_VERSION_CODE < KERNEL_VERSION(3,11,0)
        clk_put(priv->clk);
-#else
-       clk_put(priv->clk_per);
-       clk_put(priv->clk_ipg);
 #endif
 }
 


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

Reply via email to