mtd: rawnand: omap2: Pass the parent of pdev to dma_request_chan()
authorBoris Brezillon <boris.brezillon@bootlin.com>
Thu, 13 Dec 2018 19:22:27 +0000 (20:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jan 2019 16:38:37 +0000 (17:38 +0100)
commitcec876b46e191b7569754c6ed5be76ee54d4669b
tree1310ca53dc422b00864aa786f1a15ec12a34745c
parent5cad883fd61284ede408ed5e7ac6a6689452d795
mtd: rawnand: omap2: Pass the parent of pdev to dma_request_chan()

commit 9b432630e0150b777c423fdef6a7b8d17dfa70b6 upstream.

Commit e1e6255c311b ("mtd: rawnand: omap2: convert driver to
nand_scan()") moved part of the init code in the ->attach_chip hook
and at the same time changed the struct device object passed to
dma_request_chan() (&pdev->dev instead of pdev->dev.parent).

Fixes: e1e6255c311b ("mtd: rawnand: omap2: convert driver to nand_scan()")
Reported-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Tested-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/nand/raw/omap2.c