Page MenuHomeFreeBSD

D57886.diff
No OneTemporary

D57886.diff

diff --git a/sys/dev/iicbus/iichid.c b/sys/dev/iicbus/iichid.c
--- a/sys/dev/iicbus/iichid.c
+++ b/sys/dev/iicbus/iichid.c
@@ -1163,15 +1163,15 @@
}
if (sc->irq_res == NULL || error != 0) {
+ device_printf(sc->dev, "Interrupt setup failed\n");
+ if (sc->irq_res != NULL)
+ bus_release_resource(dev, SYS_RES_IRQ, sc->irq_rid,
+ sc->irq_res);
#ifdef IICHID_SAMPLING
device_printf(sc->dev,
"Using sampling mode\n");
sc->sampling_rate_slow = IICHID_SAMPLING_RATE_SLOW;
#else
- device_printf(sc->dev, "Interrupt setup failed\n");
- if (sc->irq_res != NULL)
- bus_release_resource(dev, SYS_RES_IRQ, sc->irq_rid,
- sc->irq_res);
iichid_detach(dev);
error = ENXIO;
goto done;

File Metadata

Mime Type
text/plain
Expires
Tue, Jun 30, 9:31 AM (15 m, 30 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34405485
Default Alt Text
D57886.diff (719 B)

Event Timeline