Skip to content

Commit

Permalink
powerpc/powernv: Create platform devs for nvdimm buses
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Oliver O'Halloran authored and Dan Williams committed Apr 7, 2018
1 parent ddc141e commit 3013e17
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/powerpc/platforms/powernv/opal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 3013e17

Please sign in to comment.