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

@@@ -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
@@@ -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
@@@ -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)
@@@ -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