From patchwork Fri Dec 14 12:13:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [04/40] pseries: Allow RTAS tokens without a qemu handler Date: Fri, 14 Dec 2012 02:13:20 -0000 From: Alexander Graf X-Patchwork-Id: 206481 Message-Id: <1355487236-27451-5-git-send-email-agraf@suse.de> To: "qemu-ppc@nongnu.org List" Cc: qemu-devel qemu-devel , David Gibson From: Ben Herrenschmidt Kernel-based RTAS calls will not have a qemu handler, but will still be registered in qemu in order to be assigned a token number and appear in the device-tree. Let's test for the name being NULL rather than the handler when deciding to skip an entry while building the device-tree Signed-off-by: Benjamin Herrenschmidt Signed-off-by: David Gibson Signed-off-by: Alexander Graf --- hw/spapr_rtas.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/spapr_rtas.c b/hw/spapr_rtas.c index 45294e8..e618c2d 100644 --- a/hw/spapr_rtas.c +++ b/hw/spapr_rtas.c @@ -301,7 +301,7 @@ int spapr_rtas_device_tree_setup(void *fdt, hwaddr rtas_addr, for (i = 0; i < TOKEN_MAX; i++) { struct rtas_call *call = &rtas_table[i]; - if (!call->fn) { + if (!call->name) { continue; }