summaryrefslogtreecommitdiff
path: root/drivers/dma/sun4i-dma.c
diff options
context:
space:
mode:
authorEmilio López <emilio.lopez@collabora.co.uk>2016-02-21 22:26:35 -0300
committerVinod Koul <vinod.koul@intel.com>2016-03-03 21:16:35 +0530
commit94c622b2a742c6793d74a71280df0c3a5365a156 (patch)
tree2c0a92370ee51f9b8067a11c18881d8a38136f8c /drivers/dma/sun4i-dma.c
parentd387ef021a218ee66fe6b64cf447da09cac5c53b (diff)
downloadlwn-94c622b2a742c6793d74a71280df0c3a5365a156.tar.gz
lwn-94c622b2a742c6793d74a71280df0c3a5365a156.zip
dmaengine: sun4i: support module autoloading
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>
Diffstat (limited to 'drivers/dma/sun4i-dma.c')
-rw-r--r--drivers/dma/sun4i-dma.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/sun4i-dma.c b/drivers/dma/sun4i-dma.c
index 1661d518224a..e0df233dde92 100644
--- a/drivers/dma/sun4i-dma.c
+++ b/drivers/dma/sun4i-dma.c
@@ -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,