nvdimm/pmem: fix creating the dax group
authorChristoph Hellwig <hch@lst.de>
Wed, 22 Sep 2021 17:34:29 +0000 (19:34 +0200)
committerDan Williams <dan.j.williams@intel.com>
Mon, 27 Sep 2021 18:40:43 +0000 (11:40 -0700)
commitd55174cccac2e4c2a58ff68b6b573fc0836f73bd
treee25ab3769554f4c9acaedc555f48441e1295c6f4
parentf060db99374e80e853ac4916b49f0a903f65e9dc
nvdimm/pmem: fix creating the dax group

The recent block layer refactoring broke the way how the pmem driver
abused device_add_disk.  Fix this by properly passing the attribute groups
to device_add_disk.

Fixes: 52b85909f85d ("block: fold register_disk into device_add_disk")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Tested-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/20210922173431.2454024-2-hch@lst.de
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/pmem.c