Module Name: src Committed By: palle Date: Tue Jun 21 20:36:02 UTC 2016
Modified Files: src/sys/arch/sparc64/dev: vbus.c Log Message: sun4v: vbus_attach() bugfix - use device_private() To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/sparc64/dev/vbus.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/sparc64/dev/vbus.c diff -u src/sys/arch/sparc64/dev/vbus.c:1.1 src/sys/arch/sparc64/dev/vbus.c:1.2 --- src/sys/arch/sparc64/dev/vbus.c:1.1 Fri Jun 17 21:59:06 2016 +++ src/sys/arch/sparc64/dev/vbus.c Tue Jun 21 20:36:02 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: vbus.c,v 1.1 2016/06/17 21:59:06 palle Exp $ */ +/* $NetBSD: vbus.c,v 1.2 2016/06/21 20:36:02 palle Exp $ */ /* $OpenBSD: vbus.c,v 1.8 2015/09/27 11:29:20 kettenis Exp $ */ /* * Copyright (c) 2008 Mark Kettenis @@ -72,7 +72,7 @@ vbus_match(device_t parent, cfdata_t mat void vbus_attach(device_t parent, device_t self, void *aux) { - struct vbus_softc *sc = (struct vbus_softc *)self; + struct vbus_softc *sc = device_private(self); struct mainbus_attach_args *ma = aux; int node;