summaryrefslogtreecommitdiff
path: root/sys/arch/i386/pci/glxpcib.c
diff options
context:
space:
mode:
authorPaul Irofti <pirofti@cvs.openbsd.org>2010-09-22 04:24:20 +0000
committerPaul Irofti <pirofti@cvs.openbsd.org>2010-09-22 04:24:20 +0000
commit8be6cefcc639f27cda89f0dfc10793c27f7a6955 (patch)
treef1082da3bdd0fdf5ea45b49d9bb7b6862cc11d3f /sys/arch/i386/pci/glxpcib.c
parent6282beeb12aa3874a83b4a3f1ebdcac6324818f0 (diff)
Fix ramdisks, from Vladimir Kirillov. Thanks!
Diffstat (limited to 'sys/arch/i386/pci/glxpcib.c')
-rw-r--r--sys/arch/i386/pci/glxpcib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/i386/pci/glxpcib.c b/sys/arch/i386/pci/glxpcib.c
index ce969ad1310..c1c1dc92e7d 100644
--- a/sys/arch/i386/pci/glxpcib.c
+++ b/sys/arch/i386/pci/glxpcib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: glxpcib.c,v 1.11 2010/09/21 12:55:25 deraadt Exp $ */
+/* $OpenBSD: glxpcib.c,v 1.12 2010/09/22 04:24:19 pirofti Exp $ */
/*
* Copyright (c) 2007 Marc Balmer <mbalmer@openbsd.org>
@@ -261,7 +261,9 @@ glxpcib_attach(struct device *parent, struct device *self, void *aux)
int
glxpcib_activate(struct device *self, int act)
{
+#ifndef SMALL_KERNEL
struct glxpcib_softc *sc = (struct glxpcib_softc *)self;
+#endif
int rv = 0;
switch (act) {