]> git.baikalelectronics.ru Git - kernel.git/commit
mtd/rfd_ftl: don't cast away the type when calling add_mtd_blktrans_dev
authorChristoph Hellwig <hch@lst.de>
Mon, 23 Aug 2021 07:33:55 +0000 (09:33 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 23 Aug 2021 08:01:06 +0000 (10:01 +0200)
commit9c6dd15d160209f0d33c4f666118690f683adf82
treef58fe3e884929dee88c9924777f16c881017ae51
parentc50abbf1d036e92e82e24ccb2a2e6b4ed3d5fc91
mtd/rfd_ftl: don't cast away the type when calling add_mtd_blktrans_dev

Pass the actual mtd_blktrans_dev instead of casting the containing
structure to void *.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210823073359.705281-5-hch@lst.de
drivers/mtd/rfd_ftl.c