Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144377620
D41594.id126514.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
552 B
Referenced Files
None
Subscribers
None
D41594.id126514.diff
View Options
diff --git a/sys/dev/extres/clk/clk_fixed.c b/sys/dev/extres/clk/clk_fixed.c
--- a/sys/dev/extres/clk/clk_fixed.c
+++ b/sys/dev/extres/clk/clk_fixed.c
@@ -157,6 +157,11 @@
clk_type = ofw_bus_search_compatible(dev, compat_data)->ocd_data;
switch (clk_type) {
case CLK_TYPE_FIXED:
+ if (OF_hasprop(ofw_bus_get_node(dev), "clock-frequency") == 0) {
+ device_printf(dev,
+ "clock-fixed has no clock-frequency\n");
+ return (ENXIO);
+ }
device_set_desc(dev, "Fixed clock");
return (BUS_PROBE_DEFAULT);
case CLK_TYPE_FIXED_FACTOR:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 9, 3:26 AM (15 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28531379
Default Alt Text
D41594.id126514.diff (552 B)
Attached To
Mode
D41594: clk_fixed: reduce and clarify messages due to missing clk-frequency
Attached
Detach File
Event Timeline
Log In to Comment