summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorjmcneill <jmcneill@NetBSD.org>2008-05-19 19:52:09 +0000
committerjmcneill <jmcneill@NetBSD.org>2008-05-19 19:52:09 +0000
commitf26579137a67f70e8685b541aaa52814321f4ca2 (patch)
tree198f83680cd6380132974852e78ea3b77438d8ac /sys/dev
parent396f9f4598a89139a8377340a5e0dba41b9dfd9f (diff)
Don't build as module if _RUMPKERNEL is defined.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/putter/putter.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/putter/putter.c b/sys/dev/putter/putter.c
index b0ec09f5c54..9d18bf0c07d 100644
--- a/sys/dev/putter/putter.c
+++ b/sys/dev/putter/putter.c
@@ -1,4 +1,4 @@
-/* $NetBSD: putter.c,v 1.11 2008/05/19 17:15:34 ad Exp $ */
+/* $NetBSD: putter.c,v 1.12 2008/05/19 19:52:09 jmcneill Exp $ */
/*
* Copyright (c) 2006, 2007 Antti Kantee. All Rights Reserved.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: putter.c,v 1.11 2008/05/19 17:15:34 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: putter.c,v 1.12 2008/05/19 19:52:09 jmcneill Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -579,6 +579,7 @@ get_pi_idx(struct putter_instance *pi_i)
return i;
}
+#ifndef _RUMPKERNEL
MODULE(MODULE_CLASS_MISC, putter, NULL);
static int
@@ -596,3 +597,4 @@ putter_modcmd(modcmd_t cmd, void *arg)
return ENOTTY;
}
}
+#endif /* !_RUMPKERNEL */