diff options
author | Steve French <sfrench@us.ibm.com> | 2008-02-06 11:04:00 -0500 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2008-02-06 11:04:00 -0500 |
commit | f315ccb3e679f271583f2a4f463ad9b65665b751 (patch) | |
tree | 44eb52102587d7b0bb592464cef6ec04bcac8b90 /arch/alpha/kernel/pci-noop.c | |
parent | ead03e30b050d6dda769e7e9b071c5fa720bf8d2 (diff) | |
parent | 551e4fb2465b87de9d4aa1669b27d624435443bb (diff) |
Merge branch 'master' of /pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'arch/alpha/kernel/pci-noop.c')
-rw-r--r-- | arch/alpha/kernel/pci-noop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/alpha/kernel/pci-noop.c b/arch/alpha/kernel/pci-noop.c index 468b76ce66a1..8ac08311f5a5 100644 --- a/arch/alpha/kernel/pci-noop.c +++ b/arch/alpha/kernel/pci-noop.c | |||
@@ -165,7 +165,7 @@ dma_alloc_coherent(struct device *dev, size_t size, | |||
165 | ret = (void *)__get_free_pages(gfp, get_order(size)); | 165 | ret = (void *)__get_free_pages(gfp, get_order(size)); |
166 | if (ret) { | 166 | if (ret) { |
167 | memset(ret, 0, size); | 167 | memset(ret, 0, size); |
168 | *dma_handle = virt_to_bus(ret); | 168 | *dma_handle = virt_to_phys(ret); |
169 | } | 169 | } |
170 | return ret; | 170 | return ret; |
171 | } | 171 | } |
@@ -184,7 +184,7 @@ dma_map_sg(struct device *dev, struct scatterlist *sgl, int nents, | |||
184 | 184 | ||
185 | BUG_ON(!sg_page(sg)); | 185 | BUG_ON(!sg_page(sg)); |
186 | va = sg_virt(sg); | 186 | va = sg_virt(sg); |
187 | sg_dma_address(sg) = (dma_addr_t)virt_to_bus(va); | 187 | sg_dma_address(sg) = (dma_addr_t)virt_to_phys(va); |
188 | sg_dma_len(sg) = sg->length; | 188 | sg_dma_len(sg) = sg->length; |
189 | } | 189 | } |
190 | 190 | ||