[ndctl PATCH v3 1/6] libndctl: Refactor out add_dimm() to handle NFIT specific init