diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-04-11 18:51:40 +0200 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-04-11 18:51:40 +0200 |
commit | 10a5fd5e6b7e2d464c9f95f67cade4ddbd63f4e1 (patch) | |
tree | eddf856286234f28cac747d20eb59d918e1bc8b5 /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) | |
download | linux-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.c | 2 |
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; |