aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/clk/clk_fixed.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/clk/clk_fixed.c')
-rw-r--r--sys/dev/clk/clk_fixed.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/clk/clk_fixed.c b/sys/dev/clk/clk_fixed.c
index f8dcfb8378cd..6656aeec473e 100644
--- a/sys/dev/clk/clk_fixed.c
+++ b/sys/dev/clk/clk_fixed.c
@@ -157,9 +157,11 @@ clk_fixed_probe(device_t dev)
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");
+ if (!OF_hasprop(ofw_bus_get_node(dev), "clock-frequency")) {
+ if (bootverbose) {
+ device_printf(dev,
+ "clock-fixed has no clock-frequency\n");
+ }
return (ENXIO);
}
device_set_desc(dev, "Fixed clock");