]> git.dujemihanovic.xyz Git - u-boot.git/commit
smbios: only look for a SYSINFO udevice if SYSINFO support is enabled
authorQuentin Schulz <quentin.schulz@cherry.de>
Mon, 10 Jun 2024 16:13:46 +0000 (18:13 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 18 Jun 2024 16:41:15 +0000 (10:41 -0600)
commit512ed81e567e3dba05d92ce34e9fe2c4fb107373
treef2fe05787fc32c3055cda3308caaa670ff234173
parentca4becc149e1a0063cc72a7bf071062d415bcaf6
smbios: only look for a SYSINFO udevice if SYSINFO support is enabled

If SYSINFO support isn't enabled, it's a given that uclass_first_device
for UCLASS_SYSINFO will not find anything, therefore let's skip the test
entirely.

This allows to get rid of the following debug message that may be
confusing:

Cannot find uclass for id 118: please add the UCLASS_DRIVER() declaration for this UCLASS_... id

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/smbios.c