Fix SPD presence detection
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user