From d1a556881a71a62db891064060cb565e6c7a4d1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Date: Thu, 11 Apr 2019 16:45:38 +0200 Subject: nx: remove check on the "qemu, powernv" property MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit commit 95f7b3b9698b ("nx: Don't abort on missing NX when using a QEMU machine") introduced a check on the property "qemu,powernv" to skip NX initialization when running under a QEMU machine. The QEMU platforms now expose a QUIRK_NO_RNG in the chip. Testing the "qemu,powernv" property is not necessary anymore. Signed-off-by: Cédric Le Goater Reviewed-by: Joel Stanley Reviewed-by: Andrew Jeffery Signed-off-by: Stewart Smith --- hw/nx.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'hw') diff --git a/hw/nx.c b/hw/nx.c index d3746ae..9a4a9b1 100644 --- a/hw/nx.c +++ b/hw/nx.c @@ -44,11 +44,7 @@ static void p9_darn_init(void) */ dt_for_each_compatible(dt_root, nx, "ibm,power9-nx") break; - if (!nx) { - if (!dt_node_is_compatible(dt_root, "qemu,powernv")) - assert(nx); - return; - } + assert(nx); phys_map_get(dt_get_chip_id(nx), NX_RNG, 0, &default_bar, NULL); -- cgit v1.1