summaryrefslogtreecommitdiffstats
path: root/arch/x86_64/kernel/pci-dma.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-04-11 18:51:40 +0200
committerJeff Garzik <jeff@garzik.org>2006-04-11 18:51:40 +0200
commit10a5fd5e6b7e2d464c9f95f67cade4ddbd63f4e1 (patch)
treeeddf856286234f28cac747d20eb59d918e1bc8b5 /arch/x86_64/kernel/pci-dma.c
parent[PATCH] ahci: do not fail softreset if PHY reports no device (diff)
parent[PATCH] __group_complete_signal: remove bogus BUG_ON (diff)
downloadlinux-10a5fd5e6b7e2d464c9f95f67cade4ddbd63f4e1.tar.xz
linux-10a5fd5e6b7e2d464c9f95f67cade4ddbd63f4e1.zip
Merge branch 'master'
Conflicts: drivers/scsi/libata-scsi.c include/linux/libata.h
Diffstat (limited to 'arch/x86_64/kernel/pci-dma.c')
-rw-r--r--arch/x86_64/kernel/pci-dma.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86_64/kernel/pci-dma.c b/arch/x86_64/kernel/pci-dma.c
index 03c9eeedb0f3..af035ede70cd 100644
--- a/arch/x86_64/kernel/pci-dma.c
+++ b/arch/x86_64/kernel/pci-dma.c
@@ -48,9 +48,11 @@ dma_alloc_pages(struct device *dev, gfp_t gfp, unsigned order)
{
struct page *page;
int node;
+#ifdef CONFIG_PCI
if (dev->bus == &pci_bus_type)
node = pcibus_to_node(to_pci_dev(dev)->bus);
else
+#endif
node = numa_node_id();
page = alloc_pages_node(node, gfp, order);
return page ? page_address(page) : NULL;