From: Oliver O'Halloran Date: Fri, 6 Apr 2018 05:21:16 +0000 (+1000) Subject: powerpc/powernv: Create platform devs for nvdimm buses X-Git-Tag: v4.17-rc1~61^2~1^2~4 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=3013e17381b8ba9adc5b0fb424128ea692205300;p=uclinux-h8%2Flinux.git 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 Signed-off-by: Dan Williams --- 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();