aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/iicbus/iichid.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/iicbus/iichid.c')
-rw-r--r--sys/dev/iicbus/iichid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/iicbus/iichid.c b/sys/dev/iicbus/iichid.c
index 3f1d7a0cefba..fdb4816b8bd9 100644
--- a/sys/dev/iicbus/iichid.c
+++ b/sys/dev/iicbus/iichid.c
@@ -861,7 +861,8 @@ iichid_intr_start(device_t dev, device_t child __unused)
sc = device_get_softc(dev);
DPRINTF(sc, "iichid device open\n");
- iichid_set_power_state(sc, IICHID_PS_ON, IICHID_PS_NULL);
+ if (!sc->open)
+ iichid_set_power_state(sc, IICHID_PS_ON, IICHID_PS_NULL);
return (0);
}