diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-10-17 17:31:48 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2020-01-07 17:24:29 +0400 |
commit | 4cc76287d81036909e43e29a7a42e8d9852041db (patch) | |
tree | b0f34e334f89abded6505d540d6fe4e6e0f942d6 /hw/net/lance.c | |
parent | 0fe4bb3241110fc9fbd1c5c457d58191fcdca5d3 (diff) | |
download | qemu-4cc76287d81036909e43e29a7a42e8d9852041db.zip qemu-4cc76287d81036909e43e29a7a42e8d9852041db.tar.gz qemu-4cc76287d81036909e43e29a7a42e8d9852041db.tar.bz2 |
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>
Diffstat (limited to 'hw/net/lance.c')
-rw-r--r-- | hw/net/lance.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hw/net/lance.c b/hw/net/lance.c index 6631e2a..4d96299 100644 --- a/hw/net/lance.c +++ b/hw/net/lance.c @@ -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 = { |