back to passing device_t

This commit is contained in:
christos 2016-12-13 20:18:06 +00:00
parent 87cdadbd3f
commit b707f068cf
1 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: vidcaudio.c,v 1.54 2016/12/09 13:26:47 christos Exp $ */
/* $NetBSD: vidcaudio.c,v 1.55 2016/12/13 20:18:06 christos Exp $ */
/*
* Copyright (c) 1995 Melvin Tang-Richardson
@ -65,7 +65,7 @@
#include <sys/param.h> /* proc.h */
__KERNEL_RCSID(0, "$NetBSD: vidcaudio.c,v 1.54 2016/12/09 13:26:47 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: vidcaudio.c,v 1.55 2016/12/13 20:18:06 christos Exp $");
#include <sys/audioio.h>
#include <sys/conf.h> /* autoconfig functions */
@ -270,8 +270,7 @@ vidcaudio_attach(device_t parent, device_t self, void *aux)
beepdev = audio_attach_mi(&vidcaudio_hw_if, sc, self);
#if NPCKBD > 0
int unit = device_unit(beepdev);
pckbd_hookup_bell(audiobell, &unit);
pckbd_hookup_bell(audiobell, beepdev);
#endif
}