From 540f006a23085230c12c3cbcbd2bd774be0eb28e Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 21 Oct 2009 15:25:39 +0200 Subject: stellaris_enet: use qdev properties for configuration. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori --- hw/stellaris.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/stellaris.c') diff --git a/hw/stellaris.c b/hw/stellaris.c index 1628914..44c9eee 100644 --- a/hw/stellaris.c +++ b/hw/stellaris.c @@ -1383,7 +1383,7 @@ static void stellaris_init(const char *kernel_filename, const char *cpu_model, qemu_check_nic_model(&nd_table[0], "stellaris"); enet = qdev_create(NULL, "stellaris_enet"); - enet->nd = &nd_table[0]; + qdev_set_nic_properties(enet, &nd_table[0]); qdev_init_nofail(enet); sysbus_mmio_map(sysbus_from_qdev(enet), 0, 0x40048000); sysbus_connect_irq(sysbus_from_qdev(enet), 0, pic[42]); -- cgit v1.1