summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Knudsen <mk@cvs.openbsd.org>2006-06-19 11:42:08 +0000
committerMichael Knudsen <mk@cvs.openbsd.org>2006-06-19 11:42:08 +0000
commit80d52858b15b68a405dfc998c2b41ab54f538b8a (patch)
tree733c2c093869f46ab97d49a2d135740971f0b221 /sys
parentfb0cdfeed631b7577e1cbef3b1c3b3ff032c5a88 (diff)
Remove freebsdism.
input and ok mickey.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/wdt.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/sys/dev/pci/wdt.c b/sys/dev/pci/wdt.c
index e32618c7c0a..e67063852b1 100644
--- a/sys/dev/pci/wdt.c
+++ b/sys/dev/pci/wdt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wdt.c,v 1.10 2006/06/17 19:30:51 mk Exp $ */
+/* $OpenBSD: wdt.c,v 1.11 2006/06/19 11:42:07 mk Exp $ */
/*-
* Copyright (c) 1998,1999 Alex Nash
@@ -50,9 +50,6 @@ struct wdt_softc {
/* feature set: 0 = none 1 = temp, buzzer, etc. */
int features;
- /* unit number (unlikely more than one would be present though) */
- int unit;
-
/* device access through bus space */
bus_space_tag_t iot;
bus_space_handle_t ioh;
@@ -125,25 +122,23 @@ wdtattach (parent, self, aux)
struct wdt_softc *wdt = (struct wdt_softc *)self;
struct pci_attach_args *const pa = (struct pci_attach_args *)aux;
bus_size_t iosize;
- int unit;
-
- unit = wdt->wdt_dev.dv_unit;
/* retrieve the I/O region (BAR2) */
if (pci_mapreg_map(pa, 0x18, PCI_MAPREG_TYPE_IO, 0,
&wdt->iot, &wdt->ioh, NULL, &iosize, 0) != 0) {
- printf("wdt%d: couldn't find PCI I/O region\n", unit);
+ printf("%s: couldn't find PCI I/O region\n",
+ wdt->wdt_dev.dv_xname);
return;
}
/* sanity check I/O size */
if (iosize != (bus_size_t)16) {
- printf("wdt%d: invalid I/O region size\n", unit);
+ printf("%s: invalid I/O region size\n",
+ wdt->wdt_dev.dv_xname);
return;
}
/* initialize the watchdog timer structure */
- wdt->unit = unit;
/* check the feature set available */
if (wdt_is501(wdt))