dmaengine: sun4i: support module autoloading
authorEmilio López <emilio.lopez@collabora.co.uk>
Mon, 22 Feb 2016 01:26:35 +0000 (22:26 -0300)
committerVinod Koul <vinod.koul@intel.com>
Thu, 3 Mar 2016 15:46:35 +0000 (21:16 +0530)
MODULE_DEVICE_TABLE() is missing, so the module isn't auto-loading on
supported systems. This commit adds the missing line so it loads
automatically when building it as a module and running on a system
with the early sunxi DMA engine.

Signed-off-by: Emilio López <emilio.lopez@collabora.co.uk>
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sun4i-dma.c

index 1661d518224a7e4e57ca6c8c717096b5a87333e1..e0df233dde929b4fc5390104ed9b3227d3bd663e 100644 (file)
@@ -1271,6 +1271,7 @@ static const struct of_device_id sun4i_dma_match[] = {
        { .compatible = "allwinner,sun4i-a10-dma" },
        { /* sentinel */ },
 };
+MODULE_DEVICE_TABLE(of, sun4i_dma_match);
 
 static struct platform_driver sun4i_dma_driver = {
        .probe  = sun4i_dma_probe,