summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_iwn.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2008-03-08 16:24:46 +0000
committerMarc Espie <espie@cvs.openbsd.org>2008-03-08 16:24:46 +0000
commit1a3d17fd9d9f9e05be00e774dfadfb1be25cb20f (patch)
tree65b2957adb66c3c83591a1a75c1e44bb94ebf01a /sys/dev/pci/if_iwn.c
parent5d3e200ed8e7fc450c0ce889def1783cf5b9a709 (diff)
allows SMALL_KERNEL compiles
okay damien@
Diffstat (limited to 'sys/dev/pci/if_iwn.c')
-rw-r--r--sys/dev/pci/if_iwn.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/pci/if_iwn.c b/sys/dev/pci/if_iwn.c
index 8292f359e81..71f793a9bac 100644
--- a/sys/dev/pci/if_iwn.c
+++ b/sys/dev/pci/if_iwn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwn.c,v 1.16 2007/11/30 19:19:47 damien Exp $ */
+/* $OpenBSD: if_iwn.c,v 1.17 2008/03/08 16:24:44 espie Exp $ */
/*-
* Copyright (c) 2007
@@ -72,7 +72,9 @@ static const struct pci_matchid iwn_devices[] = {
int iwn_match(struct device *, void *, void *);
void iwn_attach(struct device *, struct device *, void *);
+#ifndef SMALL_KERNEL
void iwn_sensor_attach(struct iwn_softc *);
+#endif
void iwn_radiotap_attach(struct iwn_softc *);
void iwn_power(int, void *);
int iwn_dma_contig_alloc(bus_dma_tag_t, struct iwn_dma_info *,
@@ -331,7 +333,9 @@ iwn_attach(struct device *parent, struct device *self, void *aux)
sc->amrr.amrr_min_success_threshold = 1;
sc->amrr.amrr_max_success_threshold = 15;
+#ifndef SMALL_KERNEL
iwn_sensor_attach(sc);
+#endif
iwn_radiotap_attach(sc);
timeout_set(&sc->calib_to, iwn_calib_timeout, sc);
@@ -349,6 +353,7 @@ fail2: iwn_free_kw(sc);
fail1: iwn_free_fwmem(sc);
}
+#ifndef SMALL_KERNEL
/*
* Attach the adapter's on-board thermal sensor to the sensors framework.
*/
@@ -364,6 +369,7 @@ iwn_sensor_attach(struct iwn_softc *sc)
sensor_attach(&sc->sensordev, &sc->sensor);
sensordev_install(&sc->sensordev);
}
+#endif
/*
* Attach the interface to 802.11 radiotap.