Don't forget to set sc_dev.

This commit is contained in:
tsutsui 2008-03-29 05:48:33 +00:00
parent 4090172b20
commit d062717c3f
4 changed files with 13 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: kb_hb.c,v 1.10 2008/03/28 18:19:56 tsutsui Exp $ */
/* $NetBSD: kb_hb.c,v 1.11 2008/03/29 05:48:33 tsutsui Exp $ */
/*
* Copyright (c) 2001 Izumi Tsutsui.
@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kb_hb.c,v 1.10 2008/03/28 18:19:56 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: kb_hb.c,v 1.11 2008/03/29 05:48:33 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -95,6 +95,8 @@ kb_hb_attach(device_t parent, device_t self, void *aux)
struct wskbddev_attach_args wsa;
int ipl;
sc->sc_dev = self;
if (bus_space_map(bt, ha->ha_address, KB_SIZE, 0, &bh) != 0) {
aprint_error(": can't map device space\n");
return;

View File

@ -1,4 +1,4 @@
/* $NetBSD: kb_kbc.c,v 1.8 2008/03/28 18:19:56 tsutsui Exp $ */
/* $NetBSD: kb_kbc.c,v 1.9 2008/03/29 05:48:33 tsutsui Exp $ */
/*
* Copyright (c) 2001 Izumi Tsutsui.
@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kb_kbc.c,v 1.8 2008/03/28 18:19:56 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: kb_kbc.c,v 1.9 2008/03/29 05:48:33 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -79,6 +79,7 @@ kb_kbc_attach(device_t parent, device_t self, void *aux)
struct wskbddev_attach_args wsa;
int ipl;
sc->sc_dev = self;
aprint_normal("\n");
sc->sc_bt = ka->ka_bt;

View File

@ -1,4 +1,4 @@
/* $NetBSD: ms_hb.c,v 1.11 2008/03/28 18:19:56 tsutsui Exp $ */
/* $NetBSD: ms_hb.c,v 1.12 2008/03/29 05:48:33 tsutsui Exp $ */
/*-
* Copyright (c) 2001 Izumi Tsutsui. All rights reserved.
@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ms_hb.c,v 1.11 2008/03/28 18:19:56 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: ms_hb.c,v 1.12 2008/03/29 05:48:33 tsutsui Exp $");
#include <sys/param.h>
#include <sys/device.h>
@ -98,6 +98,7 @@ ms_hb_attach(device_t parent, device_t self, void *aux)
struct wsmousedev_attach_args wsa;
int ipl;
sc->sc_dev = self;
if (bus_space_map(bt, ha->ha_address, MS_SIZE, 0, &bh) != 0) {
aprint_error(": can't map device space\n");
return;

View File

@ -1,4 +1,4 @@
/* $NetBSD: ms_kbc.c,v 1.10 2008/03/28 18:19:56 tsutsui Exp $ */
/* $NetBSD: ms_kbc.c,v 1.11 2008/03/29 05:48:33 tsutsui Exp $ */
/*-
* Copyright (c) 2001 Izumi Tsutsui. All rights reserved.
@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ms_kbc.c,v 1.10 2008/03/28 18:19:56 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: ms_kbc.c,v 1.11 2008/03/29 05:48:33 tsutsui Exp $");
#include <sys/param.h>
#include <sys/device.h>
@ -83,6 +83,7 @@ ms_kbc_attach(device_t parent, device_t self, void *aux)
struct wsmousedev_attach_args wsa;
int ipl;
sc->sc_dev = self;
aprint_normal("\n");
sc->sc_bt = ka->ka_bt;