shdmac.c (e3c55d406bd8df1a878546002c93db90c42be10c) | shdmac.c (174b537ac2b8fe1bac31039185b80f873716c5a1) |
---|---|
1/* 2 * Renesas SuperH DMA Engine support 3 * 4 * base is drivers/dma/flsdma.c 5 * 6 * Copyright (C) 2011-2012 Guennadi Liakhovetski <g.liakhovetski@gmx.de> 7 * Copyright (C) 2009 Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> 8 * Copyright (C) 2009 Renesas Solutions, Inc. All rights reserved. --- 671 unchanged lines hidden (view full) --- 680 {.compatible = "renesas,shdma-r8a73a4", .data = r8a73a4_shdma_devid,}, 681 {} 682}; 683MODULE_DEVICE_TABLE(of, sh_dmae_of_match); 684 685static int sh_dmae_probe(struct platform_device *pdev) 686{ 687 const struct sh_dmae_pdata *pdata; | 1/* 2 * Renesas SuperH DMA Engine support 3 * 4 * base is drivers/dma/flsdma.c 5 * 6 * Copyright (C) 2011-2012 Guennadi Liakhovetski <g.liakhovetski@gmx.de> 7 * Copyright (C) 2009 Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> 8 * Copyright (C) 2009 Renesas Solutions, Inc. All rights reserved. --- 671 unchanged lines hidden (view full) --- 680 {.compatible = "renesas,shdma-r8a73a4", .data = r8a73a4_shdma_devid,}, 681 {} 682}; 683MODULE_DEVICE_TABLE(of, sh_dmae_of_match); 684 685static int sh_dmae_probe(struct platform_device *pdev) 686{ 687 const struct sh_dmae_pdata *pdata; |
688 unsigned long irqflags = IRQF_DISABLED, | 688 unsigned long irqflags = 0, |
689 chan_flag[SH_DMAE_MAX_CHANNELS] = {}; 690 int errirq, chan_irq[SH_DMAE_MAX_CHANNELS]; 691 int err, i, irq_cnt = 0, irqres = 0, irq_cap = 0; 692 struct sh_dmae_device *shdev; 693 struct dma_device *dma_dev; 694 struct resource *chan, *dmars, *errirq_res, *chanirq_res; 695 696 if (pdev->dev.of_node) --- 136 unchanged lines hidden (view full) --- 833 irq_cap = 1; 834 break; 835 } 836 837 if ((errirq_res->flags & IORESOURCE_BITS) == 838 IORESOURCE_IRQ_SHAREABLE) 839 chan_flag[irq_cnt] = IRQF_SHARED; 840 else | 689 chan_flag[SH_DMAE_MAX_CHANNELS] = {}; 690 int errirq, chan_irq[SH_DMAE_MAX_CHANNELS]; 691 int err, i, irq_cnt = 0, irqres = 0, irq_cap = 0; 692 struct sh_dmae_device *shdev; 693 struct dma_device *dma_dev; 694 struct resource *chan, *dmars, *errirq_res, *chanirq_res; 695 696 if (pdev->dev.of_node) --- 136 unchanged lines hidden (view full) --- 833 irq_cap = 1; 834 break; 835 } 836 837 if ((errirq_res->flags & IORESOURCE_BITS) == 838 IORESOURCE_IRQ_SHAREABLE) 839 chan_flag[irq_cnt] = IRQF_SHARED; 840 else |
841 chan_flag[irq_cnt] = IRQF_DISABLED; | 841 chan_flag[irq_cnt] = 0; |
842 dev_dbg(&pdev->dev, 843 "Found IRQ %d for channel %d\n", 844 i, irq_cnt); 845 chan_irq[irq_cnt++] = i; 846 } 847 848 if (irq_cnt >= SH_DMAE_MAX_CHANNELS) 849 break; --- 105 unchanged lines hidden --- | 842 dev_dbg(&pdev->dev, 843 "Found IRQ %d for channel %d\n", 844 i, irq_cnt); 845 chan_irq[irq_cnt++] = i; 846 } 847 848 if (irq_cnt >= SH_DMAE_MAX_CHANNELS) 849 break; --- 105 unchanged lines hidden --- |