sio: Use serial_hd(i) instead of serial_hds[i]

This commit is contained in:
Matt Borgerson 2018-09-02 13:48:02 -07:00
parent a0ed8d9c8b
commit 9c96d7bc08

View File

@ -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);