Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/fdt Register shutdown handlers



details:   https://anonhg.NetBSD.org/src/rev/3db8ce0e3705
branches:  trunk
changeset: 365346:3db8ce0e3705
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Aug 12 16:33:58 2018 +0000

description:
Register shutdown handlers

diffstat:

 sys/dev/fdt/ehci_fdt.c |  6 ++++--
 sys/dev/fdt/ohci_fdt.c |  6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diffs (52 lines):

diff -r 177ccd0116fd -r 3db8ce0e3705 sys/dev/fdt/ehci_fdt.c
--- a/sys/dev/fdt/ehci_fdt.c    Sun Aug 12 16:07:27 2018 +0000
+++ b/sys/dev/fdt/ehci_fdt.c    Sun Aug 12 16:33:58 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ehci_fdt.c,v 1.3 2018/04/09 16:21:10 jakllsch Exp $ */
+/* $NetBSD: ehci_fdt.c,v 1.4 2018/08/12 16:33:58 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci_fdt.c,v 1.3 2018/04/09 16:21:10 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci_fdt.c,v 1.4 2018/08/12 16:33:58 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -147,5 +147,7 @@
                return;
        }
 
+       pmf_device_register1(self, NULL, NULL, ehci_shutdown);
+
        sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint);
 }
diff -r 177ccd0116fd -r 3db8ce0e3705 sys/dev/fdt/ohci_fdt.c
--- a/sys/dev/fdt/ohci_fdt.c    Sun Aug 12 16:07:27 2018 +0000
+++ b/sys/dev/fdt/ohci_fdt.c    Sun Aug 12 16:33:58 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ohci_fdt.c,v 1.2 2018/04/09 16:21:10 jakllsch Exp $ */
+/* $NetBSD: ohci_fdt.c,v 1.3 2018/08/12 16:33:58 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ohci_fdt.c,v 1.2 2018/04/09 16:21:10 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci_fdt.c,v 1.3 2018/08/12 16:33:58 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -143,5 +143,7 @@
                return;
        }
 
+       pmf_device_register1(self, NULL, NULL, ohci_shutdown);
+
        sc->sc_child = config_found(self, &sc->sc_bus, usbctlprint);
 }



Home | Main Index | Thread Index | Old Index