Skip to content

Commit 3013e17

Browse files
oohaldjbw
authored andcommitted
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>
1 parent ddc141e commit 3013e17

File tree

1 file changed

+3
-0
lines changed
  • arch/powerpc/platforms/powernv

1 file changed

+3
-0
lines changed

arch/powerpc/platforms/powernv/opal.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,9 @@ static int __init opal_init(void)
821821
/* Create i2c platform devices */
822822
opal_pdev_init("ibm,opal-i2c");
823823

824+
/* Handle non-volatile memory devices */
825+
opal_pdev_init("pmem-region");
826+
824827
/* Setup a heatbeat thread if requested by OPAL */
825828
opal_init_heartbeat();
826829

0 commit comments

Comments
 (0)