Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111905293
D36880.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
569 B
Referenced Files
None
Subscribers
None
D36880.diff
View Options
diff --git a/sys/dev/uart/uart_dev_snps.c b/sys/dev/uart/uart_dev_snps.c
--- a/sys/dev/uart/uart_dev_snps.c
+++ b/sys/dev/uart/uart_dev_snps.c
@@ -216,7 +216,7 @@
device_printf(dev, "could not determine frequency\n");
error = uart_bus_probe(dev, (int)shift, (int)iowidth, (int)clock, 0, 0, UART_F_BUSY_DETECT);
- if (error != 0)
+ if (error > 0)
return (error);
/* XXX uart_bus_probe has changed the softc, so refresh it */
@@ -227,7 +227,7 @@
sc->apb_pclk = apb_pclk;
sc->reset = reset;
- return (0);
+ return (BUS_PROBE_VENDOR);
}
static int
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 11, 2:00 AM (18 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17092837
Default Alt Text
D36880.diff (569 B)
Attached To
Mode
D36880: uart_dev_snps: Fix device probing
Attached
Detach File
Event Timeline
Log In to Comment