Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160953638
D57886.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
719 B
Referenced Files
None
Subscribers
None
D57886.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D57886: iichid(4): Always release interrupt resource
Attached
Detach File
Event Timeline
Log In to Comment