]> git.proxmox.com Git - mirror_qemu.git/commit
nand: Don't use qdev_create() in nand_init()
authorAndreas Färber <afaerber@suse.de>
Wed, 5 Feb 2014 14:21:38 +0000 (15:21 +0100)
committerAndreas Färber <afaerber@suse.de>
Fri, 14 Feb 2014 15:22:31 +0000 (16:22 +0100)
commit6749695eaaf346c1667067e17ecc9d7d64b7f61c
tree097e2e990a22d79eb4b8fc4f9b2364b2688a58b1
parent3687d5325925a9d981c86437ff52f502a1c7648a
nand: Don't use qdev_create() in nand_init()

Commit 7426aa72c36c908a7d0eae3e38568bb0a70de479 (nand: Don't inherit
from Sysbus) changed the parent type of TYPE_NAND but continued to use
qdev_create(), which handled a NULL BusState as SysBus.

Use object_new() instead, and reuse the TYPE_NAND define while at it.

Reported-by: Markus Armbruster <armbru@redhat.com>
Cc: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/block/nand.c