diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2013-05-02 04:35:45 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2013-05-02 04:35:45 +0000 |
commit | d3ff8150601bd64aae0aa85bb4e3374a7f9ab4ce (patch) | |
tree | e3cebec43532081454f42ebd683aa67a5dc46613 /sys/dev/ic/mfi.c | |
parent | b3622b6c7bb38ebd6738beac6ca6184c72b85f6c (diff) |
always attach the battery sensor if the adapter lets us query it.
newly replaced batteries dont show up immediately.
Diffstat (limited to 'sys/dev/ic/mfi.c')
-rw-r--r-- | sys/dev/ic/mfi.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/ic/mfi.c b/sys/dev/ic/mfi.c index 1b876682293..b9b6ead958c 100644 --- a/sys/dev/ic/mfi.c +++ b/sys/dev/ic/mfi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfi.c,v 1.142 2013/05/01 03:44:21 dlg Exp $ */ +/* $OpenBSD: mfi.c,v 1.143 2013/05/02 04:35:44 dlg Exp $ */ /* * Copyright (c) 2006 Marco Peereboom <marco@peereboom.us> * @@ -2069,8 +2069,7 @@ mfi_create_sensors(struct mfi_softc *sc) strlcpy(sc->sc_sensordev.xname, DEVNAME(sc), sizeof(sc->sc_sensordev.xname)); - if (ISSET(letoh32(sc->sc_info.mci_hw_present), MFI_INFO_HW_BBU) && - ISSET(letoh32(sc->sc_info.mci_adapter_ops ), MFI_INFO_AOPS_BBU)) { + if (ISSET(letoh32(sc->sc_info.mci_adapter_ops ), MFI_INFO_AOPS_BBU)) { sc->sc_bbu = malloc(sizeof(*sc->sc_bbu), M_DEVBUF, M_WAITOK | M_ZERO); |