- 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
This commit is contained in:
parent
79a6e729c5
commit
d07a0d1d4c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=178972
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user