aboutsummaryrefslogtreecommitdiff
path: root/hw/net/fsl_etsec
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2015-02-04 18:33:04 +0100
committerAndreas Färber <afaerber@suse.de>2015-02-24 00:19:05 +0100
commitaef0d55a4bc52b1713de88c100ba6dc451578e50 (patch)
tree6b8acc3bd03ecba496786198300984e1abb801e3 /hw/net/fsl_etsec
parentcd7c50a48dd484637aec36c351728ad0f140805a (diff)
downloadqemu-aef0d55a4bc52b1713de88c100ba6dc451578e50.zip
qemu-aef0d55a4bc52b1713de88c100ba6dc451578e50.tar.gz
qemu-aef0d55a4bc52b1713de88c100ba6dc451578e50.tar.bz2
etsec: Replace qdev_init() by qdev_init_nofail()
etsec_create() is a helper to create and realize the eTSEC. It's currently unused. Similar helpers for other NICs use qdev_init_nofail(). Match that. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/net/fsl_etsec')
-rw-r--r--hw/net/fsl_etsec/etsec.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/hw/net/fsl_etsec/etsec.c b/hw/net/fsl_etsec/etsec.c
index 2fbbc6c..c57365f 100644
--- a/hw/net/fsl_etsec/etsec.c
+++ b/hw/net/fsl_etsec/etsec.c
@@ -443,10 +443,7 @@ DeviceState *etsec_create(hwaddr base,
dev = qdev_create(NULL, "eTSEC");
qdev_set_nic_properties(dev, nd);
-
- if (qdev_init(dev)) {
- return NULL;
- }
+ qdev_init_nofail(dev);
sysbus_connect_irq(SYS_BUS_DEVICE(dev), 0, tx_irq);
sysbus_connect_irq(SYS_BUS_DEVICE(dev), 1, rx_irq);