diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2018-04-06 07:21:16 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2018-04-07 16:53:23 +0200 |
commit | 3013e17381b8ba9adc5b0fb424128ea692205300 (patch) | |
tree | 6fbca1a07b50067112e0c5e39e1836d9f1f133f0 /arch/powerpc | |
parent | doc/devicetree: Persistent memory region bindings (diff) | |
download | linux-3013e17381b8ba9adc5b0fb424128ea692205300.tar.xz linux-3013e17381b8ba9adc5b0fb424128ea692205300.zip |
powerpc/powernv: Create platform devs for nvdimm buses
Scan the devicetree for an nvdimm-bus compatible and create
a platform device for them.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/platforms/powernv/opal.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/powernv/opal.c b/arch/powerpc/platforms/powernv/opal.c index c15182765ff5..c37485a3c5c9 100644 --- a/arch/powerpc/platforms/powernv/opal.c +++ b/arch/powerpc/platforms/powernv/opal.c @@ -821,6 +821,9 @@ static int __init opal_init(void) /* Create i2c platform devices */ opal_pdev_init("ibm,opal-i2c"); + /* Handle non-volatile memory devices */ + opal_pdev_init("pmem-region"); + /* Setup a heatbeat thread if requested by OPAL */ opal_init_heartbeat(); |