Module Name:    src
Committed By:   thorpej
Date:           Fri Jan 21 19:22:56 UTC 2022

Modified Files:
        src/sys/arch/sparc/dev: vme_machdep.c

Log Message:
Don't bother with prom_node_to_devhandle() if we're just forwarding along
our own node; use device_handle(self) instead.


To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 src/sys/arch/sparc/dev/vme_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sparc/dev/vme_machdep.c
diff -u src/sys/arch/sparc/dev/vme_machdep.c:1.75 src/sys/arch/sparc/dev/vme_machdep.c:1.76
--- src/sys/arch/sparc/dev/vme_machdep.c:1.75	Sun Dec  5 04:21:31 2021
+++ src/sys/arch/sparc/dev/vme_machdep.c	Fri Jan 21 19:22:56 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: vme_machdep.c,v 1.75 2021/12/05 04:21:31 msaitoh Exp $	*/
+/*	$NetBSD: vme_machdep.c,v 1.76 2022/01/21 19:22:56 thorpej Exp $	*/
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vme_machdep.c,v 1.75 2021/12/05 04:21:31 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vme_machdep.c,v 1.76 2022/01/21 19:22:56 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/extent.h>
@@ -432,7 +432,7 @@ vmeattach_iommu(device_t parent, device_
 	       sc->sc_reg->vmebus_cr & VMEBUS_CR_IMPL);
 
 	(void)config_found(self, &vba, 0,
-	    CFARGS(.devhandle = prom_node_to_devhandle(node)));
+	    CFARGS(.devhandle = device_handle(self)));
 #endif /* SUN4M */
 }
 

Reply via email to