diff options
author | Markus Armbruster <armbru@redhat.com> | 2015-02-04 18:33:04 +0100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2015-02-24 00:19:05 +0100 |
commit | aef0d55a4bc52b1713de88c100ba6dc451578e50 (patch) | |
tree | 6b8acc3bd03ecba496786198300984e1abb801e3 /hw/net/fsl_etsec/etsec.c | |
parent | cd7c50a48dd484637aec36c351728ad0f140805a (diff) |
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/etsec.c')
-rw-r--r-- | hw/net/fsl_etsec/etsec.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/hw/net/fsl_etsec/etsec.c b/hw/net/fsl_etsec/etsec.c index 2fbbc6ccc0..c57365fdec 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); |