mirror of https://github.com/xqemu/xqemu.git
fdc: Make errp the last parameter of fdctrl_connect_drives
Signed-off-by: Fam Zheng <famz@redhat.com> Message-Id: <20170421122710.15373-11-famz@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
cb8d4bf677
commit
c0ca74f6f3
|
@ -2521,8 +2521,8 @@ static void fdctrl_result_timer(void *opaque)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Init functions */
|
/* Init functions */
|
||||||
static void fdctrl_connect_drives(FDCtrl *fdctrl, Error **errp,
|
static void fdctrl_connect_drives(FDCtrl *fdctrl, DeviceState *fdc_dev,
|
||||||
DeviceState *fdc_dev)
|
Error **errp)
|
||||||
{
|
{
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
FDrive *drive;
|
FDrive *drive;
|
||||||
|
@ -2675,7 +2675,7 @@ static void fdctrl_realize_common(DeviceState *dev, FDCtrl *fdctrl,
|
||||||
}
|
}
|
||||||
|
|
||||||
floppy_bus_create(fdctrl, &fdctrl->bus, dev);
|
floppy_bus_create(fdctrl, &fdctrl->bus, dev);
|
||||||
fdctrl_connect_drives(fdctrl, errp, dev);
|
fdctrl_connect_drives(fdctrl, dev, errp);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const MemoryRegionPortio fdc_portio_list[] = {
|
static const MemoryRegionPortio fdc_portio_list[] = {
|
||||||
|
|
Loading…
Reference in New Issue