Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/dev sun4v: vbus_attach() bugfix - use devic...
details: https://anonhg.NetBSD.org/src/rev/c2a6b1143d20
branches: trunk
changeset: 346067:c2a6b1143d20
user: palle <palle%NetBSD.org@localhost>
date: Tue Jun 21 20:36:02 2016 +0000
description:
sun4v: vbus_attach() bugfix - use device_private()
diffstat:
sys/arch/sparc64/dev/vbus.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r a0694744336c -r c2a6b1143d20 sys/arch/sparc64/dev/vbus.c
--- a/sys/arch/sparc64/dev/vbus.c Tue Jun 21 14:31:48 2016 +0000
+++ b/sys/arch/sparc64/dev/vbus.c Tue Jun 21 20:36:02 2016 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index