From: Nicolas Chauvet Date: Wed, 13 Dec 2017 15:50:33 +0000 (+0100) Subject: dmaengine: imx-sdma: Add MODULE_FIRMWARE X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=c0879342efc41bc79a0836cc06ce2af22ec496c9;p=openwrt%2Fstaging%2Fblogic.git dmaengine: imx-sdma: Add MODULE_FIRMWARE This avoid the following error when using an initramfs on wandboard quad Direct firmware load for imx/sdma/sdma-imx6q.bin failed with error -2 Signed-off-by: Nicolas Chauvet Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 2184881afe76..e7db24c67030 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -1939,4 +1939,10 @@ module_platform_driver(sdma_driver); MODULE_AUTHOR("Sascha Hauer, Pengutronix "); MODULE_DESCRIPTION("i.MX SDMA driver"); +#if IS_ENABLED(CONFIG_SOC_IMX6Q) +MODULE_FIRMWARE("imx/sdma/sdma-imx6q.bin"); +#endif +#if IS_ENABLED(CONFIG_SOC_IMX7D) +MODULE_FIRMWARE("imx/sdma/sdma-imx7d.bin"); +#endif MODULE_LICENSE("GPL");