Skip to content

Commit

Permalink
extres/syscon_generic: Make device quiet if not in boot verbose
Browse files Browse the repository at this point in the history
On some boards there is a lot of of syscon node that are unused as
more specific drivers is probed before, no need to flood the console
for the mostly-unused generic ones.

MFC after:	1 week
  • Loading branch information
evadot committed Jul 8, 2020
1 parent 6f818c1 commit 9d2c88a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sys/dev/extres/syscon/syscon_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ syscon_generic_probe(device_t dev)
return (ENXIO);

device_set_desc(dev, "syscon");
if (!bootverbose)
device_quiet(dev);

return (BUS_PROBE_GENERIC);
}

Expand Down

0 comments on commit 9d2c88a

Please sign in to comment.