Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/sunxi Support parents in different clock domains.



details:   https://anonhg.NetBSD.org/src/rev/3c881f9509af
branches:  trunk
changeset: 825078:3c881f9509af
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu Jun 29 17:06:21 2017 +0000

description:
Support parents in different clock domains.

diffstat:

 sys/arch/arm/sunxi/sunxi_ccu_gate.c |  11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diffs (33 lines):

diff -r 4607a2fd4e9c -r 3c881f9509af sys/arch/arm/sunxi/sunxi_ccu_gate.c
--- a/sys/arch/arm/sunxi/sunxi_ccu_gate.c       Thu Jun 29 17:05:26 2017 +0000
+++ b/sys/arch/arm/sunxi/sunxi_ccu_gate.c       Thu Jun 29 17:06:21 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_ccu_gate.c,v 1.1 2017/06/28 23:51:29 jmcneill Exp $ */
+/* $NetBSD: sunxi_ccu_gate.c,v 1.2 2017/06/29 17:06:21 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_ccu_gate.c,v 1.1 2017/06/28 23:51:29 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_ccu_gate.c,v 1.2 2017/06/29 17:06:21 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -59,13 +59,8 @@
 sunxi_ccu_gate_get_parent(struct sunxi_ccu_softc *sc, struct sunxi_ccu_clk *clk)
 {
        struct sunxi_ccu_gate *gate = &clk->u.gate;
-       struct sunxi_ccu_clk *clk_parent;
 
        KASSERT(clk->type == SUNXI_CCU_GATE);
 
-       clk_parent = sunxi_ccu_clock_find(sc, gate->parent);
-       if (clk_parent == NULL)
-               return NULL;
-
-       return clk_parent->base.name;
+       return gate->parent;
 }



Home | Main Index | Thread Index | Old Index