Allow resource4 module version to not exist on modules part of kernel
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e2392eadf7
commit
c6127bd30e
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue