powerpc/pseries/mobility: don't error on absence of ibm, update-nodes
authorNathan Lynch <nathanl@linux.ibm.com>
Mon, 7 Dec 2020 21:51:39 +0000 (15:51 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 8 Dec 2020 10:40:55 +0000 (21:40 +1100)
Treat the absence of the ibm,update-nodes function as benign instead
of reporting an error. If the platform does not provide that facility,
it's not a problem for Linux.

Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201207215200.1785968-8-nathanl@linux.ibm.com
arch/powerpc/platforms/pseries/mobility.c

index 6ff642e84c6ac9ba543068d0578f953e2b9c4363..e66359b00297a1546722d3e73e4edc5698e8a3fc 100644 (file)
@@ -261,7 +261,7 @@ int pseries_devicetree_update(s32 scope)
 
        update_nodes_token = rtas_token("ibm,update-nodes");
        if (update_nodes_token == RTAS_UNKNOWN_SERVICE)
-               return -EINVAL;
+               return 0;
 
        rtas_buf = kzalloc(RTAS_DATA_BUF_SIZE, GFP_KERNEL);
        if (!rtas_buf)