diff options
Diffstat (limited to 'drivers/dma')
| -rw-r--r-- | drivers/dma/Kconfig | 2 | ||||
| -rw-r--r-- | drivers/dma/fsldma.c | 4 | ||||
| -rw-r--r-- | drivers/dma/mpc512x_dma.c | 4 | ||||
| -rw-r--r-- | drivers/dma/ppc4xx/adma.c | 8 | ||||
| -rw-r--r-- | drivers/dma/shdma.c | 8 |
5 files changed, 13 insertions, 13 deletions
diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig index fed57634b6c1..9520cf02edc8 100644 --- a/drivers/dma/Kconfig +++ b/drivers/dma/Kconfig | |||
| @@ -141,7 +141,7 @@ config TXX9_DMAC | |||
| 141 | 141 | ||
| 142 | config SH_DMAE | 142 | config SH_DMAE |
| 143 | tristate "Renesas SuperH DMAC support" | 143 | tristate "Renesas SuperH DMAC support" |
| 144 | depends on SUPERH && SH_DMA | 144 | depends on (SUPERH && SH_DMA) || (ARM && ARCH_SHMOBILE) |
| 145 | depends on !SH_DMA_API | 145 | depends on !SH_DMA_API |
| 146 | select DMA_ENGINE | 146 | select DMA_ENGINE |
| 147 | help | 147 | help |
diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c index f0fd6db6063c..cea08bed9cf9 100644 --- a/drivers/dma/fsldma.c +++ b/drivers/dma/fsldma.c | |||
| @@ -1297,7 +1297,7 @@ static void fsl_dma_chan_remove(struct fsldma_chan *chan) | |||
| 1297 | kfree(chan); | 1297 | kfree(chan); |
| 1298 | } | 1298 | } |
| 1299 | 1299 | ||
| 1300 | static int __devinit fsldma_of_probe(struct of_device *op, | 1300 | static int __devinit fsldma_of_probe(struct platform_device *op, |
| 1301 | const struct of_device_id *match) | 1301 | const struct of_device_id *match) |
| 1302 | { | 1302 | { |
| 1303 | struct fsldma_device *fdev; | 1303 | struct fsldma_device *fdev; |
| @@ -1382,7 +1382,7 @@ out_return: | |||
| 1382 | return err; | 1382 | return err; |
| 1383 | } | 1383 | } |
| 1384 | 1384 | ||
| 1385 | static int fsldma_of_remove(struct of_device *op) | 1385 | static int fsldma_of_remove(struct platform_device *op) |
| 1386 | { | 1386 | { |
| 1387 | struct fsldma_device *fdev; | 1387 | struct fsldma_device *fdev; |
| 1388 | unsigned int i; | 1388 | unsigned int i; |
diff --git a/drivers/dma/mpc512x_dma.c b/drivers/dma/mpc512x_dma.c index 14a8c0f1698e..4e9cbf300594 100644 --- a/drivers/dma/mpc512x_dma.c +++ b/drivers/dma/mpc512x_dma.c | |||
| @@ -627,7 +627,7 @@ mpc_dma_prep_memcpy(struct dma_chan *chan, dma_addr_t dst, dma_addr_t src, | |||
| 627 | return &mdesc->desc; | 627 | return &mdesc->desc; |
| 628 | } | 628 | } |
| 629 | 629 | ||
| 630 | static int __devinit mpc_dma_probe(struct of_device *op, | 630 | static int __devinit mpc_dma_probe(struct platform_device *op, |
| 631 | const struct of_device_id *match) | 631 | const struct of_device_id *match) |
| 632 | { | 632 | { |
| 633 | struct device_node *dn = op->dev.of_node; | 633 | struct device_node *dn = op->dev.of_node; |
| @@ -753,7 +753,7 @@ static int __devinit mpc_dma_probe(struct of_device *op, | |||
| 753 | return retval; | 753 | return retval; |
| 754 | } | 754 | } |
| 755 | 755 | ||
| 756 | static int __devexit mpc_dma_remove(struct of_device *op) | 756 | static int __devexit mpc_dma_remove(struct platform_device *op) |
| 757 | { | 757 | { |
| 758 | struct device *dev = &op->dev; | 758 | struct device *dev = &op->dev; |
| 759 | struct mpc_dma *mdma = dev_get_drvdata(dev); | 759 | struct mpc_dma *mdma = dev_get_drvdata(dev); |
diff --git a/drivers/dma/ppc4xx/adma.c b/drivers/dma/ppc4xx/adma.c index 7c3747902a37..0d58a4a4487f 100644 --- a/drivers/dma/ppc4xx/adma.c +++ b/drivers/dma/ppc4xx/adma.c | |||
| @@ -4257,11 +4257,11 @@ static int ppc440spe_adma_setup_irqs(struct ppc440spe_adma_device *adev, | |||
| 4257 | struct ppc440spe_adma_chan *chan, | 4257 | struct ppc440spe_adma_chan *chan, |
| 4258 | int *initcode) | 4258 | int *initcode) |
| 4259 | { | 4259 | { |
| 4260 | struct of_device *ofdev; | 4260 | struct platform_device *ofdev; |
| 4261 | struct device_node *np; | 4261 | struct device_node *np; |
| 4262 | int ret; | 4262 | int ret; |
| 4263 | 4263 | ||
| 4264 | ofdev = container_of(adev->dev, struct of_device, dev); | 4264 | ofdev = container_of(adev->dev, struct platform_device, dev); |
| 4265 | np = ofdev->dev.of_node; | 4265 | np = ofdev->dev.of_node; |
| 4266 | if (adev->id != PPC440SPE_XOR_ID) { | 4266 | if (adev->id != PPC440SPE_XOR_ID) { |
| 4267 | adev->err_irq = irq_of_parse_and_map(np, 1); | 4267 | adev->err_irq = irq_of_parse_and_map(np, 1); |
| @@ -4393,7 +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 | */ |
| 4396 | static int __devinit ppc440spe_adma_probe(struct of_device *ofdev, | 4396 | static int __devinit ppc440spe_adma_probe(struct platform_device *ofdev, |
| 4397 | const struct of_device_id *match) | 4397 | const struct of_device_id *match) |
| 4398 | { | 4398 | { |
| 4399 | struct device_node *np = ofdev->dev.of_node; | 4399 | struct device_node *np = ofdev->dev.of_node; |
| @@ -4625,7 +4625,7 @@ out: | |||
| 4625 | /** | 4625 | /** |
| 4626 | * ppc440spe_adma_remove - remove the asynch device | 4626 | * ppc440spe_adma_remove - remove the asynch device |
| 4627 | */ | 4627 | */ |
| 4628 | static int __devexit ppc440spe_adma_remove(struct of_device *ofdev) | 4628 | static int __devexit ppc440spe_adma_remove(struct platform_device *ofdev) |
| 4629 | { | 4629 | { |
| 4630 | struct ppc440spe_adma_device *adev = dev_get_drvdata(&ofdev->dev); | 4630 | struct ppc440spe_adma_device *adev = dev_get_drvdata(&ofdev->dev); |
| 4631 | struct device_node *np = ofdev->dev.of_node; | 4631 | struct device_node *np = ofdev->dev.of_node; |
diff --git a/drivers/dma/shdma.c b/drivers/dma/shdma.c index a2a519fd2a24..fb64cf36ba61 100644 --- a/drivers/dma/shdma.c +++ b/drivers/dma/shdma.c | |||
| @@ -816,7 +816,7 @@ static irqreturn_t sh_dmae_interrupt(int irq, void *data) | |||
| 816 | return ret; | 816 | return ret; |
| 817 | } | 817 | } |
| 818 | 818 | ||
| 819 | #if defined(CONFIG_CPU_SH4) | 819 | #if defined(CONFIG_CPU_SH4) || defined(CONFIG_ARCH_SHMOBILE) |
| 820 | static irqreturn_t sh_dmae_err(int irq, void *data) | 820 | static irqreturn_t sh_dmae_err(int irq, void *data) |
| 821 | { | 821 | { |
| 822 | struct sh_dmae_device *shdev = (struct sh_dmae_device *)data; | 822 | struct sh_dmae_device *shdev = (struct sh_dmae_device *)data; |
| @@ -1057,7 +1057,7 @@ static int __init sh_dmae_probe(struct platform_device *pdev) | |||
| 1057 | /* Default transfer size of 32 bytes requires 32-byte alignment */ | 1057 | /* Default transfer size of 32 bytes requires 32-byte alignment */ |
| 1058 | shdev->common.copy_align = LOG2_DEFAULT_XFER_SIZE; | 1058 | shdev->common.copy_align = LOG2_DEFAULT_XFER_SIZE; |
| 1059 | 1059 | ||
| 1060 | #if defined(CONFIG_CPU_SH4) | 1060 | #if defined(CONFIG_CPU_SH4) || defined(CONFIG_ARCH_SHMOBILE) |
| 1061 | chanirq_res = platform_get_resource(pdev, IORESOURCE_IRQ, 1); | 1061 | chanirq_res = platform_get_resource(pdev, IORESOURCE_IRQ, 1); |
| 1062 | 1062 | ||
| 1063 | if (!chanirq_res) | 1063 | if (!chanirq_res) |
| @@ -1082,7 +1082,7 @@ static int __init sh_dmae_probe(struct platform_device *pdev) | |||
| 1082 | 1082 | ||
| 1083 | #else | 1083 | #else |
| 1084 | chanirq_res = errirq_res; | 1084 | chanirq_res = errirq_res; |
| 1085 | #endif /* CONFIG_CPU_SH4 */ | 1085 | #endif /* CONFIG_CPU_SH4 || CONFIG_ARCH_SHMOBILE */ |
| 1086 | 1086 | ||
| 1087 | if (chanirq_res->start == chanirq_res->end && | 1087 | if (chanirq_res->start == chanirq_res->end && |
| 1088 | !platform_get_resource(pdev, IORESOURCE_IRQ, 1)) { | 1088 | !platform_get_resource(pdev, IORESOURCE_IRQ, 1)) { |
| @@ -1129,7 +1129,7 @@ static int __init sh_dmae_probe(struct platform_device *pdev) | |||
| 1129 | chan_probe_err: | 1129 | chan_probe_err: |
| 1130 | sh_dmae_chan_remove(shdev); | 1130 | sh_dmae_chan_remove(shdev); |
| 1131 | eirqres: | 1131 | eirqres: |
| 1132 | #if defined(CONFIG_CPU_SH4) | 1132 | #if defined(CONFIG_CPU_SH4) || defined(CONFIG_ARCH_SHMOBILE) |
| 1133 | free_irq(errirq, shdev); | 1133 | free_irq(errirq, shdev); |
| 1134 | eirq_err: | 1134 | eirq_err: |
| 1135 | #endif | 1135 | #endif |
