Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/fdt sc_clock_freq is in Hz, not kHz



details:   https://anonhg.NetBSD.org/src/rev/c0c99b13753c
branches:  trunk
changeset: 324408:c0c99b13753c
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon Jul 02 13:45:23 2018 +0000

description:
sc_clock_freq is in Hz, not kHz

diffstat:

 sys/dev/fdt/dwcmmc_fdt.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e00188e0d0ef -r c0c99b13753c sys/dev/fdt/dwcmmc_fdt.c
--- a/sys/dev/fdt/dwcmmc_fdt.c  Mon Jul 02 12:53:51 2018 +0000
+++ b/sys/dev/fdt/dwcmmc_fdt.c  Mon Jul 02 13:45:23 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwcmmc_fdt.c,v 1.4 2018/07/01 21:21:56 jmcneill Exp $ */
+/* $NetBSD: dwcmmc_fdt.c,v 1.5 2018/07/02 13:45:23 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015-2018 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwcmmc_fdt.c,v 1.4 2018/07/01 21:21:56 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwcmmc_fdt.c,v 1.5 2018/07/02 13:45:23 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -193,7 +193,7 @@
                return error;
        }
 
-       sc->sc_clock_freq = (clk_get_rate(esc->sc_clk_ciu) / ciu_div) / 1000;
+       sc->sc_clock_freq = clk_get_rate(esc->sc_clk_ciu) / ciu_div;
 
        aprint_debug_dev(sc->sc_dev, "set clock rate to %u kHz (target %u kHz)\n",
            sc->sc_clock_freq, rate);



Home | Main Index | Thread Index | Old Index