]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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 Duval <dan.duval@oracle.com>
Wed, 7 Dec 2016 17:25:47 +0000 (12:25 -0500)
commit258a3a44b44faf707f9c8cb8ba94941b7008cefc
treee55ee3fd403d2f6e4e74f4570d644b476739ae94
parentd13a7935018de0084c82f37762b655a0de76ce6e
block, badblocks: introduce devm_init_badblocks

Orabug: 22913653

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>
(cherry picked from commit 16263ff6c72eb4cc00aa287230144dda12ccad12)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
block/badblocks.c
include/linux/badblocks.h