Fix SPD presence detection

This commit is contained in:
RichardG867
2020-06-26 18:24:15 -03:00
parent 93b909fe59
commit 84e378695a

View File

@@ -118,6 +118,8 @@ spd_close(void *priv)
spd_write_byte, NULL, NULL, NULL,
dev);
spd_present = 0;
free(dev);
}
@@ -134,6 +136,8 @@ spd_init(const device_t *info)
spd_write_byte, NULL, NULL, NULL,
dev);
spd_present = 1;
return dev;
}
@@ -396,6 +400,4 @@ spd_register(uint8_t ram_type, uint8_t slot_mask, uint16_t max_module_size)
//device_add(info);
vslot++;
}
spd_present = 1;
}