diff mbox

[1/3] dmaengine: axi-dmac: Add MODULE_DEVICE_TABLE()

Message ID 1467387958-14559-1-git-send-email-lars@metafoo.de (mailing list archive)
State Accepted
Headers show

Commit Message

Lars-Peter Clausen July 1, 2016, 3:45 p.m. UTC
Add MODULE_DEVICE_TABLE() for the axi-dmac driver. This allows the driver
to be loaded on demand when built as a module.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
 drivers/dma/dma-axi-dmac.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Karen Xie July 1, 2016, 5:23 p.m. UTC | #1
-----Original Message-----
From: dmaengine-owner@vger.kernel.org [mailto:dmaengine-owner@vger.kernel.org] On Behalf Of Vinod Koul
Sent: Friday, July 01, 2016 10:27 AM
To: Lars-Peter Clausen <lars@metafoo.de>
Cc: dmaengine@vger.kernel.org
Subject: Re: [PATCH 1/3] dmaengine: axi-dmac: Add MODULE_DEVICE_TABLE()

On Fri, Jul 01, 2016 at 05:45:56PM +0200, Lars-Peter Clausen wrote:
> Add MODULE_DEVICE_TABLE() for the axi-dmac driver. This allows the
> driver to be loaded on demand when built as a module.

Applied all, thanks

--
~Vinod
--
To unsubscribe from this list: send the line "unsubscribe dmaengine" in the body of a message to majordomo@vger.kernel.org More majordomo info at  http://vger.kernel.org/majordomo-info.html


This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.

--
To unsubscribe from this list: send the line "unsubscribe dmaengine" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Vinod Koul July 1, 2016, 5:27 p.m. UTC | #2
On Fri, Jul 01, 2016 at 05:45:56PM +0200, Lars-Peter Clausen wrote:
> Add MODULE_DEVICE_TABLE() for the axi-dmac driver. This allows the driver
> to be loaded on demand when built as a module.

Applied all, thanks
diff mbox

Patch

diff --git a/drivers/dma/dma-axi-dmac.c b/drivers/dma/dma-axi-dmac.c
index c346809..8b0de8c 100644
--- a/drivers/dma/dma-axi-dmac.c
+++ b/drivers/dma/dma-axi-dmac.c
@@ -683,6 +683,7 @@  static const struct of_device_id axi_dmac_of_match_table[] = {
 	{ .compatible = "adi,axi-dmac-1.00.a" },
 	{ },
 };
+MODULE_DEVICE_TABLE(of, axi_dmac_of_match_table);
 
 static struct platform_driver axi_dmac_driver = {
 	.driver = {