mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
spapr_vio: Convert to realize()
Bonus fix: always set an error on failure. Some failures were silent before, except for the generic error set by device_realize(). Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
e5f6e7327a
commit
28b07e737e
6 changed files with 27 additions and 38 deletions
|
@ -52,7 +52,7 @@ typedef struct VIOsPAPRDeviceClass {
|
|||
const char *dt_name, *dt_type, *dt_compatible;
|
||||
target_ulong signal_mask;
|
||||
uint32_t rtce_window_size;
|
||||
int (*init)(VIOsPAPRDevice *dev);
|
||||
void (*realize)(VIOsPAPRDevice *dev, Error **errp);
|
||||
void (*reset)(VIOsPAPRDevice *dev);
|
||||
int (*devnode)(VIOsPAPRDevice *dev, void *fdt, int node_off);
|
||||
} VIOsPAPRDeviceClass;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue