diff options
| author | Mitchell Horne <mhorne@FreeBSD.org> | 2026-04-16 14:13:04 +0000 |
|---|---|---|
| committer | Mitchell Horne <mhorne@FreeBSD.org> | 2026-04-16 14:13:04 +0000 |
| commit | 8728e21bd694dbb813c149206c5c89290f9c32f5 (patch) | |
| tree | 09c2a239b3170d34a4e0bf4ef2b79f57fc95cece | |
| parent | b60cd486a652f0427e525b4482ac598be5460459 (diff) | |
clk_fixed: quiet a warning message
Frequently there are some unused/unspecified fixed clocks present in a
device tree. Each one emits a warning before it fails to attach, which
results in (sometimes many) repeated messages which are not
user-actionable.
Put this warning behind the bootverbose flag.
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56204
| -rw-r--r-- | sys/dev/clk/clk_fixed.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/clk/clk_fixed.c b/sys/dev/clk/clk_fixed.c index f18b8f8904c6..6656aeec473e 100644 --- a/sys/dev/clk/clk_fixed.c +++ b/sys/dev/clk/clk_fixed.c @@ -158,8 +158,10 @@ clk_fixed_probe(device_t dev) switch (clk_type) { case CLK_TYPE_FIXED: if (!OF_hasprop(ofw_bus_get_node(dev), "clock-frequency")) { - device_printf(dev, - "clock-fixed has no clock-frequency\n"); + if (bootverbose) { + device_printf(dev, + "clock-fixed has no clock-frequency\n"); + } return (ENXIO); } device_set_desc(dev, "Fixed clock"); |
