Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/nvidia Use fdtbus_todr_attach



details:   https://anonhg.NetBSD.org/src/rev/21016d1e1074
branches:  trunk
changeset: 353166:21016d1e1074
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Apr 22 13:24:45 2017 +0000

description:
Use fdtbus_todr_attach

diffstat:

 sys/arch/arm/nvidia/tegra_rtc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 19a9e68b395f -r 21016d1e1074 sys/arch/arm/nvidia/tegra_rtc.c
--- a/sys/arch/arm/nvidia/tegra_rtc.c   Sat Apr 22 13:24:20 2017 +0000
+++ b/sys/arch/arm/nvidia/tegra_rtc.c   Sat Apr 22 13:24:45 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_rtc.c,v 1.2 2015/12/13 17:39:19 jmcneill Exp $ */
+/* $NetBSD: tegra_rtc.c,v 1.3 2017/04/22 13:24:45 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra_rtc.c,v 1.2 2015/12/13 17:39:19 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_rtc.c,v 1.3 2017/04/22 13:24:45 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -104,7 +104,7 @@
        sc->sc_todr.todr_gettime = tegra_rtc_gettime;
        sc->sc_todr.todr_settime = tegra_rtc_settime;
        sc->sc_todr.cookie = sc;
-       todr_attach(&sc->sc_todr);
+       fdtbus_todr_attach(self, faa->faa_phandle, &sc->sc_todr);
 }
 
 static int



Home | Main Index | Thread Index | Old Index