mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
lance: replace PROP_PTR with PROP_LINK
The device remains non-user creatable since it is a sysbus device. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
This commit is contained in:
parent
0fe4bb3241
commit
4cc76287d8
4 changed files with 5 additions and 6 deletions
|
@ -138,7 +138,8 @@ static void lance_instance_init(Object *obj)
|
|||
}
|
||||
|
||||
static Property lance_properties[] = {
|
||||
DEFINE_PROP_PTR("dma", SysBusPCNetState, state.dma_opaque),
|
||||
DEFINE_PROP_LINK("dma", SysBusPCNetState, state.dma_opaque,
|
||||
TYPE_DEVICE, DeviceState *),
|
||||
DEFINE_NIC_PROPERTIES(SysBusPCNetState, state.conf),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
@ -153,8 +154,6 @@ static void lance_class_init(ObjectClass *klass, void *data)
|
|||
dc->reset = lance_reset;
|
||||
dc->vmsd = &vmstate_lance;
|
||||
dc->props = lance_properties;
|
||||
/* Reason: pointer property "dma" */
|
||||
dc->user_creatable = false;
|
||||
}
|
||||
|
||||
static const TypeInfo lance_info = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue