[PATCH v3 1/3] libnvdimm/of_pmem: factor out region registration