mtd: block2mtd: Convert to bdev_open_by_dev/path()
authorJan Kara <jack@suse.cz>
Wed, 27 Sep 2023 09:34:18 +0000 (11:34 +0200)
committerChristian Brauner <brauner@kernel.org>
Sat, 28 Oct 2023 11:29:18 +0000 (13:29 +0200)
commit3817d4b11212ca9d49d6e7141d41524aa48791c5
tree4659b7fa511bba12755f21fe76505e54906fdb0a
parent9f0f5a30d34cb92257e94a042b8e86d9a680e416
mtd: block2mtd: Convert to bdev_open_by_dev/path()

Convert block2mtd to use bdev_open_by_dev() and bdev_open_by_path() and
pass the handle around.

CC: Joern Engel <joern@lazybastard.org>
CC: linux-mtd@lists.infradead.org
Acked-by: Christoph Hellwig <hch@lst.de>
Acked-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230927093442.25915-12-jack@suse.cz
Signed-off-by: Christian Brauner <brauner@kernel.org>
drivers/mtd/devices/block2mtd.c