powerpc/pseries: re-use code from of_helpers module
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 1 Oct 2015 09:46:10 +0000 (12:46 +0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 5 Oct 2015 10:11:28 +0000 (21:11 +1100)
commit06bacefcbd5f91efb7ffedc17615fa188d6ce406
tree1d37cac883d4ff54ac2a20c0d23472b0b403ce4c
parenta46d9884096c15ec17505b9b3d19f5e0672deff3
powerpc/pseries: re-use code from of_helpers module

The derive_parent() has similar semantics to what we have in newly introduced
of_helpers module. The replacement reduces code base and propagates the actual
error code to the caller.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/dlpar.c