[PATCH] smbios: only look for a SYSINFO udevice if SYSINFO support is enabled
Simon Glass
sjg at chromium.org
Tue Jun 11 20:52:05 CEST 2024
On Mon, 10 Jun 2024 at 10:13, Quentin Schulz <foss+uboot at 0leil.net> wrote:
>
> From: Quentin Schulz <quentin.schulz at cherry.de>
>
> 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 at cherry.de>
> ---
> lib/smbios.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list