block, badblocks: introduce devm_init_badblocks
authorDan Williams <dan.j.williams@intel.com>
Tue, 5 Jan 2016 07:50:23 +0000 (23:50 -0800)
committerDan Williams <dan.j.williams@intel.com>
Sat, 9 Jan 2016 16:39:04 +0000 (08:39 -0800)
commit16263ff6c72eb4cc00aa287230144dda12ccad12
treeb92a29f5508d3dd5f494e4399bf0be799b93e319
parent20a308f09e0d29ce6f5a4114cc476a998d569bfb
block, badblocks: introduce devm_init_badblocks

Provide a devres interface for initializing a badblocks instance.  The
pmem driver has several scenarios where it will be beneficial to have
this structure automatically freed when the device is disabled / fails
probe.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
block/badblocks.c
include/linux/badblocks.h