git: 8728e21bd694 - main - clk_fixed: quiet a warning message

From: Mitchell Horne <mhorne_at_FreeBSD.org>
Date: Thu, 16 Apr 2026 14:21:23 UTC
The branch main has been updated by mhorne:

URL: https://cgit.FreeBSD.org/src/commit/?id=8728e21bd694dbb813c149206c5c89290f9c32f5

commit 8728e21bd694dbb813c149206c5c89290f9c32f5
Author:     Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2026-04-16 14:13:04 +0000
Commit:     Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2026-04-16 14:13:04 +0000

    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
---
 sys/dev/clk/clk_fixed.c | 6 ++++--
 1 file 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");