From: FUJITA Tomonori Date: Tue, 5 Feb 2008 06:30:02 +0000 (-0800) Subject: alpha: kill deprecated virt_to_bus X-Git-Tag: v2.6.25-rc1~897 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=fd2e2633c208e111348c9f84fd7eeb9c844aca02;p=linux-2.6-omap-h63xx.git alpha: kill deprecated virt_to_bus pci-noop.c doesn't use DMA mappings. Signed-off-by: FUJITA Tomonori Cc: Jens Axboe Cc: Richard Henderson Cc: Ivan Kokshaysky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/alpha/kernel/pci-noop.c b/arch/alpha/kernel/pci-noop.c index 468b76ce66a..8ac08311f5a 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, ret = (void *)__get_free_pages(gfp, get_order(size)); if (ret) { memset(ret, 0, size); - *dma_handle = virt_to_bus(ret); + *dma_handle = virt_to_phys(ret); } return ret; } @@ -184,7 +184,7 @@ dma_map_sg(struct device *dev, struct scatterlist *sgl, int nents, BUG_ON(!sg_page(sg)); va = sg_virt(sg); - sg_dma_address(sg) = (dma_addr_t)virt_to_bus(va); + sg_dma_address(sg) = (dma_addr_t)virt_to_phys(va); sg_dma_len(sg) = sg->length; }