From d062717c3f73cb4b634f76fd6d42a4f881575a2a Mon Sep 17 00:00:00 2001 From: tsutsui Date: Sat, 29 Mar 2008 05:48:33 +0000 Subject: [PATCH] Don't forget to set sc_dev. --- sys/arch/news68k/dev/kb_hb.c | 6 ++++-- sys/arch/news68k/dev/kb_kbc.c | 5 +++-- sys/arch/news68k/dev/ms_hb.c | 5 +++-- sys/arch/news68k/dev/ms_kbc.c | 5 +++-- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/sys/arch/news68k/dev/kb_hb.c b/sys/arch/news68k/dev/kb_hb.c index e687ba622007..589f6c7c41d5 100644 --- a/sys/arch/news68k/dev/kb_hb.c +++ b/sys/arch/news68k/dev/kb_hb.c @@ -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 -__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 #include @@ -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; diff --git a/sys/arch/news68k/dev/kb_kbc.c b/sys/arch/news68k/dev/kb_kbc.c index d474e01f093b..998293ef6922 100644 --- a/sys/arch/news68k/dev/kb_kbc.c +++ b/sys/arch/news68k/dev/kb_kbc.c @@ -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 -__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 #include @@ -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; diff --git a/sys/arch/news68k/dev/ms_hb.c b/sys/arch/news68k/dev/ms_hb.c index 82e62d6850d4..54445277d0c7 100644 --- a/sys/arch/news68k/dev/ms_hb.c +++ b/sys/arch/news68k/dev/ms_hb.c @@ -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 -__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 #include @@ -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; diff --git a/sys/arch/news68k/dev/ms_kbc.c b/sys/arch/news68k/dev/ms_kbc.c index 1f8fff0c8b6b..e76aad9a86b5 100644 --- a/sys/arch/news68k/dev/ms_kbc.c +++ b/sys/arch/news68k/dev/ms_kbc.c @@ -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 -__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 #include @@ -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;