summaryrefslogtreecommitdiffstats
path: root/sys/pci/intpm.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2008-05-12 21:34:52 +0000
committerjhb <jhb@FreeBSD.org>2008-05-12 21:34:52 +0000
commitb31256842df0bc175a86de8a1611b7d471be350d (patch)
treed34e874dc0f6c0b8c329e99f57e37adb47e0b733 /sys/pci/intpm.c
parent4b72784c0f9d1d77dbbc586c91f67fdc60dee367 (diff)
downloadFreeBSD-src-b31256842df0bc175a86de8a1611b7d471be350d.zip
FreeBSD-src-b31256842df0bc175a86de8a1611b7d471be350d.tar.gz
- Set sc->dev to the new-bus device_t so all the device_printf()s work.
- Add a missing newline to a printf. MFC after: 1 week Submitted by: Andriy Gapon avg <> icyb.net.ua
Diffstat (limited to 'sys/pci/intpm.c')
-rw-r--r--sys/pci/intpm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/pci/intpm.c b/sys/pci/intpm.c
index 2e5e815..3cae6cc 100644
--- a/sys/pci/intpm.c
+++ b/sys/pci/intpm.c
@@ -110,6 +110,8 @@ intsmb_attach(device_t dev)
int error, rid, value;
char *str;
+ sc->dev = dev;
+
mtx_init(&sc->lock, device_get_nameunit(dev), "intsmb", MTX_DEF);
rid = PCI_BASE_ADDR_SMB;
@@ -410,7 +412,7 @@ intsmb_stop_poll(struct intsmb_softc *sc)
sc->isbusy = 0;
error = intsmb_error(status);
if (error == 0 && !(status & PIIX4_SMBHSTSTAT_INTR))
- device_printf(sc->dev, "unknown cause why?");
+ device_printf(sc->dev, "unknown cause why?\n");
return (error);
}
}
OpenPOWER on IntegriCloud