Patchwork net: ethernet: davinci_cpdma: export cpdma_chan_get_stats

login
register
mail settings
Submitter Daniel Mack
Date Aug. 22, 2013, 11:47 a.m.
Message ID <1377172020-28053-1-git-send-email-zonque@gmail.com>
Download mbox | patch
Permalink /patch/269031/
State Accepted
Delegated to: David Miller
Headers show

Comments

Daniel Mack - Aug. 22, 2013, 11:47 a.m.
This is needed when the cpsw driver is built as module.

Signed-off-by: Daniel Mack <zonque@gmail.com>
---
 drivers/net/ethernet/ti/davinci_cpdma.c | 1 +
 1 file changed, 1 insertion(+)
David Miller - Aug. 23, 2013, 3:49 a.m.
From: Daniel Mack <zonque@gmail.com>
Date: Thu, 22 Aug 2013 13:47:00 +0200

> This is needed when the cpsw driver is built as module.
> 
> Signed-off-by: Daniel Mack <zonque@gmail.com>

Only in net-next, because in 'net' the function (while it does exist)
is not referenced by anything.

So I have applied this patch to net-next.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/net/ethernet/ti/davinci_cpdma.c b/drivers/net/ethernet/ti/davinci_cpdma.c
index 031ebc8..90a7946 100644
--- a/drivers/net/ethernet/ti/davinci_cpdma.c
+++ b/drivers/net/ethernet/ti/davinci_cpdma.c
@@ -591,6 +591,7 @@  int cpdma_chan_get_stats(struct cpdma_chan *chan,
 	spin_unlock_irqrestore(&chan->lock, flags);
 	return 0;
 }
+EXPORT_SYMBOL_GPL(cpdma_chan_get_stats);
 
 int cpdma_chan_dump(struct cpdma_chan *chan)
 {