diff options
author | Ben Herrenschmidt | 2012-11-12 17:46:53 +0100 |
---|---|---|
committer | Alexander Graf | 2012-12-14 13:12:54 +0100 |
commit | d36b66f7a420737dcc24de15b35a465ff6b1798d (patch) | |
tree | 6c3fe070effa41056cf63210e00d3354f7f36d1d /hw/spapr_rtas.c | |
parent | pseries: Return the token when we register an RTAS call (diff) | |
download | qemu-d36b66f7a420737dcc24de15b35a465ff6b1798d.tar.gz qemu-d36b66f7a420737dcc24de15b35a465ff6b1798d.tar.xz qemu-d36b66f7a420737dcc24de15b35a465ff6b1798d.zip |
pseries: Allow RTAS tokens without a qemu handler
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 <benh@kernel.crashing.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/spapr_rtas.c')
-rw-r--r-- | 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 45294e8305..e618c2db53 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; } |