Allow resource4 module version to not exist on modules part of kernel
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
DataHoarder 2021-11-27 11:01:24 +01:00
parent e2392eadf7
commit c6127bd30e

View file

@ -663,7 +663,11 @@ static fm_status GetResource4DevInfo(fm_text path, fm_resource4DriverInfo *info)
/* Get the driver version number */
err = GetResource4DriverVersion(path, info->version);
if (err != FM_OK)
if (err == FM_ERR_NOT_FOUND)
{
strcpy(info->version, "kernel");
}
else if (err != FM_OK)
{
FM_LOG_ERROR(FM_LOG_CAT_PLATFORM,
"Unable to read resource4 driver version\n");