libnvdimm: stop requiring a driver ->remove() method
authorDan Williams <dan.j.williams@intel.com>
Wed, 18 May 2016 16:13:13 +0000 (09:13 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 18 May 2016 16:13:13 +0000 (09:13 -0700)
commit6cf9c5babd980ec1959e0dd45e3036474c6a294f
treee8a059c5a7d85ab61d918725aae3c5c487762fe2
parent45a0dac0451136fa7ae34a6fea53ef6a136287ce
libnvdimm: stop requiring a driver ->remove() method

The dax_pmem driver was implementing an empty ->remove() method to
satisfy the nvdimm bus driver that unconditionally calls ->remove().
Teach the core bus driver to check if ->remove() is NULL to remove that
requirement.

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