libnvdimm, pmem: use module_nd_driver
authorJohannes Thumshirn <jthumshirn@suse.de>
Wed, 14 Mar 2018 18:25:07 +0000 (19:25 +0100)
committerDan Williams <dan.j.williams@intel.com>
Thu, 15 Mar 2018 14:18:06 +0000 (07:18 -0700)
commit03e908437d007d8a8583c4ea19c737fff2ef6edc
tree0ed653cd4969f1c7ab06a8359bf1604362feaf10
parent71cfdd0bad3ad91680e6b82cac634154cf56376e
libnvdimm, pmem: use module_nd_driver

Use module_nd_driver() instead of having module_init() and
module_exit() callbacks which just call nd_driver_register() and
nd_driver_unregister().

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/pmem.c