diff options
author | Arnd Bergmann <arnd@arndb.de> | 2013-02-14 11:53:01 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2013-02-15 07:16:29 -0500 |
commit | 6929e24e4cc46ce8d5b7dd8f8bdf4244c8d77f76 (patch) | |
tree | 08369b4641caacf4a5f0e794a9809afee140b7ff /drivers/net | |
parent | 0bef6c933f3ec67c978e2cd0e20b389084ddc600 (diff) |
net: cwdavinci_cpdma: export symbols for cpsw
With the support for ARM AM33xx in multiplatform kernels
in 3.9, an older bug appears in ARM allmodconfig:
When the cpsw driver is built as a module with cpdma
support enabled, it uses symbols that the cpdma driver
does not export.
Without this patch, building allmodconfig results in:
ERROR: "cpdma_ctlr_int_ctrl" [drivers/net/ethernet/ti/ti_cpsw.ko] undefined!
ERROR: "cpdma_control_set" [drivers/net/ethernet/ti/ti_cpsw.ko] undefined!
ERROR: "cpdma_ctlr_eoi" [drivers/net/ethernet/ti/ti_cpsw.ko] undefined!
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: David S. Miller <davem@davemloft.net>
Cc: Mugunthan V N <mugunthanvnm@ti.com>
Cc: Vaibhav Hiremath <hvaibhav@ti.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: netdev@vger.kernel.org
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/ti/davinci_cpdma.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ti/davinci_cpdma.c b/drivers/net/ethernet/ti/davinci_cpdma.c index 49956730cd8d..1abe0964a5ab 100644 --- a/drivers/net/ethernet/ti/davinci_cpdma.c +++ b/drivers/net/ethernet/ti/davinci_cpdma.c | |||
@@ -473,11 +473,13 @@ int cpdma_ctlr_int_ctrl(struct cpdma_ctlr *ctlr, bool enable) | |||
473 | spin_unlock_irqrestore(&ctlr->lock, flags); | 473 | spin_unlock_irqrestore(&ctlr->lock, flags); |
474 | return 0; | 474 | return 0; |
475 | } | 475 | } |
476 | EXPORT_SYMBOL_GPL(cpdma_ctlr_int_ctrl); | ||
476 | 477 | ||
477 | void cpdma_ctlr_eoi(struct cpdma_ctlr *ctlr) | 478 | void cpdma_ctlr_eoi(struct cpdma_ctlr *ctlr) |
478 | { | 479 | { |
479 | dma_reg_write(ctlr, CPDMA_MACEOIVECTOR, 0); | 480 | dma_reg_write(ctlr, CPDMA_MACEOIVECTOR, 0); |
480 | } | 481 | } |
482 | EXPORT_SYMBOL_GPL(cpdma_ctlr_eoi); | ||
481 | 483 | ||
482 | struct cpdma_chan *cpdma_chan_create(struct cpdma_ctlr *ctlr, int chan_num, | 484 | struct cpdma_chan *cpdma_chan_create(struct cpdma_ctlr *ctlr, int chan_num, |
483 | cpdma_handler_fn handler) | 485 | cpdma_handler_fn handler) |
@@ -984,3 +986,4 @@ unlock_ret: | |||
984 | spin_unlock_irqrestore(&ctlr->lock, flags); | 986 | spin_unlock_irqrestore(&ctlr->lock, flags); |
985 | return ret; | 987 | return ret; |
986 | } | 988 | } |
989 | EXPORT_SYMBOL_GPL(cpdma_control_set); | ||