mirror of
https://github.com/xemu-project/xemu.git
synced 2024-12-02 16:46:59 +00:00
sio: Use serial_hd(i) instead of serial_hds[i]
This commit is contained in:
parent
a0ed8d9c8b
commit
9c96d7bc08
@ -192,7 +192,7 @@ static void lpc47m157_realize(DeviceState *dev, Error **errp)
|
||||
|
||||
/* init serial cores */
|
||||
for (i = 0; i < 2; i++) {
|
||||
Chardev *chr = serial_hds[i];
|
||||
Chardev *chr = serial_hd(i);
|
||||
if (chr == NULL) {
|
||||
char name[5];
|
||||
snprintf(name, sizeof(name), "ser%d", i);
|
||||
|
Loading…
Reference in New Issue
Block a user