summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev/pckbc_ebus.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sparc64/dev/pckbc_ebus.c')
-rw-r--r--sys/arch/sparc64/dev/pckbc_ebus.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/sparc64/dev/pckbc_ebus.c b/sys/arch/sparc64/dev/pckbc_ebus.c
index 82e9a942213..f2e432987bd 100644
--- a/sys/arch/sparc64/dev/pckbc_ebus.c
+++ b/sys/arch/sparc64/dev/pckbc_ebus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pckbc_ebus.c,v 1.7 2004/11/02 21:17:39 miod Exp $ */
+/* $OpenBSD: pckbc_ebus.c,v 1.8 2007/10/01 16:11:19 krw Exp $ */
/*
* Copyright (c) 2002 Jason L. Wright (jason@thought.net)
@@ -141,8 +141,7 @@ pckbc_ebus_attach(parent, self, aux)
return;
}
- t = malloc(sizeof(struct pckbc_internal), M_DEVBUF, M_NOWAIT);
- bzero(t, sizeof(struct pckbc_internal));
+ t = malloc(sizeof(*t), M_DEVBUF, M_NOWAIT | M_ZERO);
}
psc->intr_establish = pckbc_ebus_intr_establish;