aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/Makefile8
-rw-r--r--drivers/dma/amba-pl08x.c2
-rw-r--r--drivers/dma/coh901318.c4
-rw-r--r--drivers/dma/fsldma.c14
-rw-r--r--drivers/dma/mpc512x_dma.c9
-rw-r--r--drivers/dma/pl330.c2
-rw-r--r--drivers/dma/ppc4xx/adma.c11
-rw-r--r--drivers/dma/shdma.c2
-rw-r--r--drivers/dma/timb_dma.c2
9 files changed, 20 insertions, 34 deletions
diff --git a/drivers/dma/Makefile b/drivers/dma/Makefile
index 802b55795f8b..836095ab3c5c 100644
--- a/drivers/dma/Makefile
+++ b/drivers/dma/Makefile
@@ -1,9 +1,5 @@
1ifeq ($(CONFIG_DMADEVICES_DEBUG),y) 1ccflags-$(CONFIG_DMADEVICES_DEBUG) := -DDEBUG
2 ccflags-y += -DDEBUG 2ccflags-$(CONFIG_DMADEVICES_VDEBUG) += -DVERBOSE_DEBUG
3endif
4ifeq ($(CONFIG_DMADEVICES_VDEBUG),y)
5 ccflags-y += -DVERBOSE_DEBUG
6endif
7 3
8obj-$(CONFIG_DMA_ENGINE) += dmaengine.o 4obj-$(CONFIG_DMA_ENGINE) += dmaengine.o
9obj-$(CONFIG_NET_DMA) += iovlock.o 5obj-$(CONFIG_NET_DMA) += iovlock.o
diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c
index 07bca4970e50..e6d7228b1479 100644
--- a/drivers/dma/amba-pl08x.c
+++ b/drivers/dma/amba-pl08x.c
@@ -1845,7 +1845,7 @@ static inline void init_pl08x_debugfs(struct pl08x_driver_data *pl08x)
1845} 1845}
1846#endif 1846#endif
1847 1847
1848static int pl08x_probe(struct amba_device *adev, struct amba_id *id) 1848static int pl08x_probe(struct amba_device *adev, const struct amba_id *id)
1849{ 1849{
1850 struct pl08x_driver_data *pl08x; 1850 struct pl08x_driver_data *pl08x;
1851 const struct vendor_data *vd = id->data; 1851 const struct vendor_data *vd = id->data;
diff --git a/drivers/dma/coh901318.c b/drivers/dma/coh901318.c
index a6656834f0ff..00deabd9a04b 100644
--- a/drivers/dma/coh901318.c
+++ b/drivers/dma/coh901318.c
@@ -849,7 +849,7 @@ static irqreturn_t dma_irq_handler(int irq, void *dev_id)
849 849
850 /* Must clear TC interrupt before calling 850 /* Must clear TC interrupt before calling
851 * dma_tc_handle 851 * dma_tc_handle
852 * in case tc_handle initate a new dma job 852 * in case tc_handle initiate a new dma job
853 */ 853 */
854 __set_bit(i, virtbase + COH901318_TC_INT_CLEAR1); 854 __set_bit(i, virtbase + COH901318_TC_INT_CLEAR1);
855 855
@@ -894,7 +894,7 @@ static irqreturn_t dma_irq_handler(int irq, void *dev_id)
894 } 894 }
895 /* Must clear TC interrupt before calling 895 /* Must clear TC interrupt before calling
896 * dma_tc_handle 896 * dma_tc_handle
897 * in case tc_handle initate a new dma job 897 * in case tc_handle initiate a new dma job
898 */ 898 */
899 __set_bit(i, virtbase + COH901318_TC_INT_CLEAR2); 899 __set_bit(i, virtbase + COH901318_TC_INT_CLEAR2);
900 900
diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c
index 8670a5012122..6b396759e7f5 100644
--- a/drivers/dma/fsldma.c
+++ b/drivers/dma/fsldma.c
@@ -1332,8 +1332,7 @@ static void fsl_dma_chan_remove(struct fsldma_chan *chan)
1332 kfree(chan); 1332 kfree(chan);
1333} 1333}
1334 1334
1335static int __devinit fsldma_of_probe(struct platform_device *op, 1335static int __devinit fsldma_of_probe(struct platform_device *op)
1336 const struct of_device_id *match)
1337{ 1336{
1338 struct fsldma_device *fdev; 1337 struct fsldma_device *fdev;
1339 struct device_node *child; 1338 struct device_node *child;
@@ -1465,20 +1464,13 @@ static struct of_platform_driver fsldma_of_driver = {
1465 1464
1466static __init int fsldma_init(void) 1465static __init int fsldma_init(void)
1467{ 1466{
1468 int ret;
1469
1470 pr_info("Freescale Elo / Elo Plus DMA driver\n"); 1467 pr_info("Freescale Elo / Elo Plus DMA driver\n");
1471 1468 return platform_driver_register(&fsldma_of_driver);
1472 ret = of_register_platform_driver(&fsldma_of_driver);
1473 if (ret)
1474 pr_err("fsldma: failed to register platform driver\n");
1475
1476 return ret;
1477} 1469}
1478 1470
1479static void __exit fsldma_exit(void) 1471static void __exit fsldma_exit(void)
1480{ 1472{
1481 of_unregister_platform_driver(&fsldma_of_driver); 1473 platform_driver_unregister(&fsldma_of_driver);
1482} 1474}
1483 1475
1484subsys_initcall(fsldma_init); 1476subsys_initcall(fsldma_init);
diff --git a/drivers/dma/mpc512x_dma.c b/drivers/dma/mpc512x_dma.c
index 59c270192ccc..4f95d31f5a20 100644
--- a/drivers/dma/mpc512x_dma.c
+++ b/drivers/dma/mpc512x_dma.c
@@ -649,8 +649,7 @@ mpc_dma_prep_memcpy(struct dma_chan *chan, dma_addr_t dst, dma_addr_t src,
649 return &mdesc->desc; 649 return &mdesc->desc;
650} 650}
651 651
652static int __devinit mpc_dma_probe(struct platform_device *op, 652static int __devinit mpc_dma_probe(struct platform_device *op)
653 const struct of_device_id *match)
654{ 653{
655 struct device_node *dn = op->dev.of_node; 654 struct device_node *dn = op->dev.of_node;
656 struct device *dev = &op->dev; 655 struct device *dev = &op->dev;
@@ -827,7 +826,7 @@ static struct of_device_id mpc_dma_match[] = {
827 {}, 826 {},
828}; 827};
829 828
830static struct of_platform_driver mpc_dma_driver = { 829static struct platform_driver mpc_dma_driver = {
831 .probe = mpc_dma_probe, 830 .probe = mpc_dma_probe,
832 .remove = __devexit_p(mpc_dma_remove), 831 .remove = __devexit_p(mpc_dma_remove),
833 .driver = { 832 .driver = {
@@ -839,13 +838,13 @@ static struct of_platform_driver mpc_dma_driver = {
839 838
840static int __init mpc_dma_init(void) 839static int __init mpc_dma_init(void)
841{ 840{
842 return of_register_platform_driver(&mpc_dma_driver); 841 return platform_driver_register(&mpc_dma_driver);
843} 842}
844module_init(mpc_dma_init); 843module_init(mpc_dma_init);
845 844
846static void __exit mpc_dma_exit(void) 845static void __exit mpc_dma_exit(void)
847{ 846{
848 of_unregister_platform_driver(&mpc_dma_driver); 847 platform_driver_unregister(&mpc_dma_driver);
849} 848}
850module_exit(mpc_dma_exit); 849module_exit(mpc_dma_exit);
851 850
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index 7c50f6dfd3f4..6abe1ec1f2ce 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -657,7 +657,7 @@ static irqreturn_t pl330_irq_handler(int irq, void *data)
657} 657}
658 658
659static int __devinit 659static int __devinit
660pl330_probe(struct amba_device *adev, struct amba_id *id) 660pl330_probe(struct amba_device *adev, const struct amba_id *id)
661{ 661{
662 struct dma_pl330_platdata *pdat; 662 struct dma_pl330_platdata *pdat;
663 struct dma_pl330_dmac *pdmac; 663 struct dma_pl330_dmac *pdmac;
diff --git a/drivers/dma/ppc4xx/adma.c b/drivers/dma/ppc4xx/adma.c
index cef584533ee8..3b0247e74cc4 100644
--- a/drivers/dma/ppc4xx/adma.c
+++ b/drivers/dma/ppc4xx/adma.c
@@ -4393,8 +4393,7 @@ static void ppc440spe_adma_release_irqs(struct ppc440spe_adma_device *adev,
4393/** 4393/**
4394 * ppc440spe_adma_probe - probe the asynch device 4394 * ppc440spe_adma_probe - probe the asynch device
4395 */ 4395 */
4396static int __devinit ppc440spe_adma_probe(struct platform_device *ofdev, 4396static int __devinit ppc440spe_adma_probe(struct platform_device *ofdev)
4397 const struct of_device_id *match)
4398{ 4397{
4399 struct device_node *np = ofdev->dev.of_node; 4398 struct device_node *np = ofdev->dev.of_node;
4400 struct resource res; 4399 struct resource res;
@@ -4944,7 +4943,7 @@ static const struct of_device_id ppc440spe_adma_of_match[] __devinitconst = {
4944}; 4943};
4945MODULE_DEVICE_TABLE(of, ppc440spe_adma_of_match); 4944MODULE_DEVICE_TABLE(of, ppc440spe_adma_of_match);
4946 4945
4947static struct of_platform_driver ppc440spe_adma_driver = { 4946static struct platform_driver ppc440spe_adma_driver = {
4948 .probe = ppc440spe_adma_probe, 4947 .probe = ppc440spe_adma_probe,
4949 .remove = __devexit_p(ppc440spe_adma_remove), 4948 .remove = __devexit_p(ppc440spe_adma_remove),
4950 .driver = { 4949 .driver = {
@@ -4962,7 +4961,7 @@ static __init int ppc440spe_adma_init(void)
4962 if (ret) 4961 if (ret)
4963 return ret; 4962 return ret;
4964 4963
4965 ret = of_register_platform_driver(&ppc440spe_adma_driver); 4964 ret = platform_driver_register(&ppc440spe_adma_driver);
4966 if (ret) { 4965 if (ret) {
4967 pr_err("%s: failed to register platform driver\n", 4966 pr_err("%s: failed to register platform driver\n",
4968 __func__); 4967 __func__);
@@ -4996,7 +4995,7 @@ out_dev:
4996 /* User will not be able to enable h/w RAID-6 */ 4995 /* User will not be able to enable h/w RAID-6 */
4997 pr_err("%s: failed to create RAID-6 driver interface\n", 4996 pr_err("%s: failed to create RAID-6 driver interface\n",
4998 __func__); 4997 __func__);
4999 of_unregister_platform_driver(&ppc440spe_adma_driver); 4998 platform_driver_unregister(&ppc440spe_adma_driver);
5000out_reg: 4999out_reg:
5001 dcr_unmap(ppc440spe_mq_dcr_host, ppc440spe_mq_dcr_len); 5000 dcr_unmap(ppc440spe_mq_dcr_host, ppc440spe_mq_dcr_len);
5002 kfree(ppc440spe_dma_fifo_buf); 5001 kfree(ppc440spe_dma_fifo_buf);
@@ -5011,7 +5010,7 @@ static void __exit ppc440spe_adma_exit(void)
5011 &driver_attr_enable); 5010 &driver_attr_enable);
5012 driver_remove_file(&ppc440spe_adma_driver.driver, 5011 driver_remove_file(&ppc440spe_adma_driver.driver,
5013 &driver_attr_devices); 5012 &driver_attr_devices);
5014 of_unregister_platform_driver(&ppc440spe_adma_driver); 5013 platform_driver_unregister(&ppc440spe_adma_driver);
5015 dcr_unmap(ppc440spe_mq_dcr_host, ppc440spe_mq_dcr_len); 5014 dcr_unmap(ppc440spe_mq_dcr_host, ppc440spe_mq_dcr_len);
5016 kfree(ppc440spe_dma_fifo_buf); 5015 kfree(ppc440spe_dma_fifo_buf);
5017} 5016}
diff --git a/drivers/dma/shdma.c b/drivers/dma/shdma.c
index 28720d3103c4..6451b581a70b 100644
--- a/drivers/dma/shdma.c
+++ b/drivers/dma/shdma.c
@@ -750,7 +750,7 @@ static void sh_chan_xfer_ld_queue(struct sh_dmae_chan *sh_chan)
750 return; 750 return;
751 } 751 }
752 752
753 /* Find the first not transferred desciptor */ 753 /* Find the first not transferred descriptor */
754 list_for_each_entry(desc, &sh_chan->ld_queue, node) 754 list_for_each_entry(desc, &sh_chan->ld_queue, node)
755 if (desc->mark == DESC_SUBMITTED) { 755 if (desc->mark == DESC_SUBMITTED) {
756 dev_dbg(sh_chan->dev, "Queue #%d to %d: %u@%x -> %x\n", 756 dev_dbg(sh_chan->dev, "Queue #%d to %d: %u@%x -> %x\n",
diff --git a/drivers/dma/timb_dma.c b/drivers/dma/timb_dma.c
index 3b88a4e7c98a..f69f90a61873 100644
--- a/drivers/dma/timb_dma.c
+++ b/drivers/dma/timb_dma.c
@@ -629,7 +629,7 @@ static int td_control(struct dma_chan *chan, enum dma_ctrl_cmd cmd,
629 desc_node) 629 desc_node)
630 list_move(&td_desc->desc_node, &td_chan->free_list); 630 list_move(&td_desc->desc_node, &td_chan->free_list);
631 631
632 /* now tear down the runnning */ 632 /* now tear down the running */
633 __td_finish(td_chan); 633 __td_finish(td_chan);
634 spin_unlock_bh(&td_chan->lock); 634 spin_unlock_bh(&td_chan->lock);
635 635