diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-31 00:54:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-31 00:54:37 -0400 |
commit | 6a302358d87fedaf7bda12b8e909265ebf1ce674 (patch) | |
tree | 9bb5d79d812d531ae7031fe4aecf18151e41f716 /arch/sh/drivers/dma/dma-api.c | |
parent | 8e268f333012c62fc6a5a10e1e2a19c1c389853e (diff) | |
parent | e06c4e5775b1efc4e476f2430439e45867775f5f (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6.23
* master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6.23:
sh: Fix fs.h removal from mm.h regressions.
sh: fix get_wchan() for SH kernels without framepointers
sh: arch/sh/boot - fix shell usage
rtc: rtc-sh: Correct sh_rtc_set_time() for some SH-3 parts.
sh: remove support for sh7300 and solution engine 7300
sh: Add sh to the CC_OPTIMIZE_FOR_SIZE dependencies.
sh: Kill off virt_to_bus()/bus_to_virt().
sh: sh-sci - fix SH7708 support
sh: Restrict DSP support to specific CPUs.
sh: Silence sq compile warning on sh4 nommu.
sh: Kill the rest of the SE73180 cruft.
sh: remove support for sh73180 and solution engine 73180
sh: remove old broken pint code
sh: Reclaim beginning of P3 space for vmalloc area.
sh: Fix Dreamcast DMA issues.
sh: Add kmap_coherent()/kunmap_coherent() interface for SH-4.
Diffstat (limited to 'arch/sh/drivers/dma/dma-api.c')
-rw-r--r-- | arch/sh/drivers/dma/dma-api.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/sh/drivers/dma/dma-api.c b/arch/sh/drivers/dma/dma-api.c index cf8e11994330..76ed816d9a24 100644 --- a/arch/sh/drivers/dma/dma-api.c +++ b/arch/sh/drivers/dma/dma-api.c | |||
@@ -31,8 +31,8 @@ struct dma_info *get_dma_info(unsigned int chan) | |||
31 | * the channel is. | 31 | * the channel is. |
32 | */ | 32 | */ |
33 | list_for_each_entry(info, ®istered_dmac_list, list) { | 33 | list_for_each_entry(info, ®istered_dmac_list, list) { |
34 | if ((chan < info->first_channel_nr) || | 34 | if ((chan < info->first_vchannel_nr) || |
35 | (chan >= info->first_channel_nr + info->nr_channels)) | 35 | (chan >= info->first_vchannel_nr + info->nr_channels)) |
36 | continue; | 36 | continue; |
37 | 37 | ||
38 | return info; | 38 | return info; |
@@ -82,7 +82,7 @@ struct dma_channel *get_dma_channel(unsigned int chan) | |||
82 | 82 | ||
83 | for (i = 0; i < info->nr_channels; i++) { | 83 | for (i = 0; i < info->nr_channels; i++) { |
84 | channel = &info->channels[i]; | 84 | channel = &info->channels[i]; |
85 | if (channel->chan == chan) | 85 | if (channel->vchan == chan) |
86 | return channel; | 86 | return channel; |
87 | } | 87 | } |
88 | 88 | ||
@@ -369,6 +369,7 @@ int register_dmac(struct dma_info *info) | |||
369 | } | 369 | } |
370 | 370 | ||
371 | total_channels = get_nr_channels(); | 371 | total_channels = get_nr_channels(); |
372 | info->first_vchannel_nr = total_channels; | ||
372 | for (i = 0; i < info->nr_channels; i++) { | 373 | for (i = 0; i < info->nr_channels; i++) { |
373 | struct dma_channel *chan = &info->channels[i]; | 374 | struct dma_channel *chan = &info->channels[i]; |
374 | 375 | ||