summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/dma.c
diff options
context:
space:
mode:
authorBecky Bruce <becky.bruce@freescale.com>2008-09-08 11:09:54 +0200
committerKumar Gala <galak@kernel.crashing.org>2008-09-24 23:26:43 +0200
commit8fae0353247530d2124b2419052fa6120462fa99 (patch)
tree9690fc84a069869edb282508c40dc7f9a6aa1775 /arch/powerpc/kernel/dma.c
parentpowerpc: Move iommu dma ops from dma.c to dma-iommu.c (diff)
downloadlinux-8fae0353247530d2124b2419052fa6120462fa99.tar.xz
linux-8fae0353247530d2124b2419052fa6120462fa99.zip
powerpc: Drop archdata numa_node
Use the struct device's numa_node instead; use accessor functions to get/set numa_node. Signed-off-by: Becky Bruce <becky.bruce@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/dma.c')
-rw-r--r--arch/powerpc/kernel/dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/dma.c b/arch/powerpc/kernel/dma.c
index 44e3486419e1..124f86743bde 100644
--- a/arch/powerpc/kernel/dma.c
+++ b/arch/powerpc/kernel/dma.c
@@ -29,7 +29,7 @@ static void *dma_direct_alloc_coherent(struct device *dev, size_t size,
{
struct page *page;
void *ret;
- int node = dev->archdata.numa_node;
+ int node = dev_to_node(dev);
page = alloc_pages_node(node, flag, get_order(size));
if (page == NULL)