Only the v3 table is supported now, so always use this when installing
the EFI table.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
*/
efi_status_t efi_smbios_register(void)
{
- const efi_guid_t *guid;
ulong addr;
efi_status_t ret;
void *buf;
/* Install SMBIOS information as configuration table */
buf = map_sysmem(addr, 0);
- guid = !memcmp(buf, "_SM_", 4) ? &smbios_guid : &smbios3_guid;
- ret = efi_install_configuration_table(guid, buf);
+ ret = efi_install_configuration_table(&smbios3_guid, buf);
unmap_sysmem(buf);
return ret;