summaryrefslogtreecommitdiff
path: root/sys/rump/dev/lib/libsysmon/component.c
diff options
context:
space:
mode:
authorpooka <pooka@NetBSD.org>2010-08-03 19:55:17 +0000
committerpooka <pooka@NetBSD.org>2010-08-03 19:55:17 +0000
commitfffcd29dff07a9b94d767da22b0cf29646e5ec8a (patch)
treeb1461b670b91c531b5976498229207ae81199c9b /sys/rump/dev/lib/libsysmon/component.c
parent55e1e4c9f322cabf113a6f03f1e8791db07883bc (diff)
Attach component to make it work after defpseudodev conversion
(yea, i need to fix the infrastructure for this).
Diffstat (limited to 'sys/rump/dev/lib/libsysmon/component.c')
-rw-r--r--sys/rump/dev/lib/libsysmon/component.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/rump/dev/lib/libsysmon/component.c b/sys/rump/dev/lib/libsysmon/component.c
index 9342cd213ec..56dcd15de51 100644
--- a/sys/rump/dev/lib/libsysmon/component.c
+++ b/sys/rump/dev/lib/libsysmon/component.c
@@ -1,4 +1,4 @@
-/* $NetBSD: component.c,v 1.2 2010/03/01 13:12:20 pooka Exp $ */
+/* $NetBSD: component.c,v 1.3 2010/08/03 19:55:17 pooka Exp $ */
/*
* Copyright (c) 2010 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: component.c,v 1.2 2010/03/01 13:12:20 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: component.c,v 1.3 2010/08/03 19:55:17 pooka Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -40,6 +40,8 @@ __KERNEL_RCSID(0, "$NetBSD: component.c,v 1.2 2010/03/01 13:12:20 pooka Exp $");
#include "rump_dev_private.h"
#include "rump_vfs_private.h"
+#include "ioconf.c"
+
void swwdogattach(int);
RUMP_COMPONENT(RUMP_COMPONENT_DEV)
@@ -48,6 +50,12 @@ RUMP_COMPONENT(RUMP_COMPONENT_DEV)
devmajor_t bmaj, cmaj;
int error;
+ if ((error = config_init_component(cfdriver_ioconf_swwdog,
+ cfattach_ioconf_swwdog, cfdata_ioconf_swwdog)) != 0) {
+ printf("cannot attach sysmon: %d\n", error);
+ return;
+ }
+
bmaj = cmaj = -1;
if ((error = devsw_attach("sysmon", NULL, &bmaj,
&sysmon_cdevsw, &cmaj)) != 0)