]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Merge branch 'topic/sh' into for-linus
authorVinod Koul <vinod.koul@intel.com>
Mon, 2 Sep 2013 12:12:35 +0000 (17:42 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 2 Sep 2013 12:12:35 +0000 (17:42 +0530)
Conflicts:
drivers/dma/sh/Kconfig
drivers/dma/sh/shdmac.c

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
1  2 
drivers/dma/sh/Kconfig
drivers/dma/sh/Makefile
drivers/dma/sh/shdma-of.c
drivers/dma/sh/shdmac.c
drivers/dma/sh/sudmac.c

index e2b94d16f41f21ff755114d709e74fcf04d546b7,d0924b6948e0e2c68073b10a2dd1608d09c7bcbc..dadd9e010c0b0979f15a5a195109af1e1e1e13de
@@@ -23,8 -23,6 +23,12 @@@ config SUDMA
        help
          Enable support for the Renesas SUDMAC controllers.
  
 +config RCAR_HPB_DMAE
 +      tristate "Renesas R-Car HPB DMAC support"
 +      depends on SH_DMAE_BASE
 +      help
 +        Enable support for the Renesas R-Car series DMA controllers.
++
+ config SHDMA_R8A73A4
+       def_bool y
+       depends on ARCH_R8A73A4 && SH_DMAE != n
index ccf17cb5af10c016ce1ee6fde2e5e3907bd11c59,05a31d447bd4e0c0fb5c1bd45cc394f9bfe6a77e..e856af23b789567da9986ad2bc487d3f26487991
@@@ -1,4 -1,8 +1,9 @@@
  obj-$(CONFIG_SH_DMAE_BASE) += shdma-base.o shdma-of.o
  obj-$(CONFIG_SH_DMAE) += shdma.o
+ shdma-y := shdmac.o
+ ifeq ($(CONFIG_OF),y)
+ shdma-$(CONFIG_SHDMA_R8A73A4) += shdma-r8a73a4.o
+ endif
+ shdma-objs := $(shdma-y)
  obj-$(CONFIG_SUDMAC) += sudmac.o
 +obj-$(CONFIG_RCAR_HPB_DMAE) += rcar-hpbdma.o
index 966aaab0b4d337b640396e9d63e313f54e59999f,2acf7b62d6b6452302eac43e16522498c1605f5a..06473a05fe4ebc97a7b925772604987dd476c3a4
@@@ -42,12 -42,9 +42,9 @@@ static struct dma_chan *shdma_of_xlate(
  
  static int shdma_of_probe(struct platform_device *pdev)
  {
 -      const struct of_dev_auxdata *lookup = pdev->dev.platform_data;
 +      const struct of_dev_auxdata *lookup = dev_get_platdata(&pdev->dev);
        int ret;
  
-       if (!lookup)
-               return -EINVAL;
        ret = of_dma_controller_register(pdev->dev.of_node,
                                         shdma_of_xlate, pdev);
        if (ret < 0)
index b388b12f078e7c3515b823ec83623a8354e8bfa9,33ce47eef0bff3e1bfe3de9a3763a89e0a6d61c6..3d0472b78f5fa000c7184532c96295c742a82f2b
@@@ -669,6 -693,11 +693,11 @@@ static int sh_dmae_probe(struct platfor
        struct dma_device *dma_dev;
        struct resource *chan, *dmars, *errirq_res, *chanirq_res;
  
 -              pdata = pdev->dev.platform_data;
+       if (pdev->dev.of_node)
+               pdata = of_match_device(sh_dmae_of_match, &pdev->dev)->data;
+       else
++              pdata = dev_get_platdata(&pdev->dev);
        /* get platform data */
        if (!pdata || !pdata->channel_num)
                return -ENODEV;
Simple merge