]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/base/dmapool.c
Make lguest compile with CONFIG_BLOCK=n and CONFIG_NET=n
[linux-2.6-omap-h63xx.git] / drivers / base / dmapool.c
index 9406259754adaabd21748bbd3f787b81863663ec..7647abfe189081dcec38eace34025899dd531a99 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/slab.h>
 #include <linux/module.h>
 #include <linux/poison.h>
+#include <linux/sched.h>
 
 /*
  * Pool allocator ... wraps the dma_alloc_coherent page allocator, so
@@ -126,7 +127,7 @@ dma_pool_create (const char *name, struct device *dev,
        } else if (allocation < size)
                return NULL;
 
-       if (!(retval = kmalloc (sizeof *retval, GFP_KERNEL)))
+       if (!(retval = kmalloc_node (sizeof *retval, GFP_KERNEL, dev_to_node(dev))))
                return retval;
 
        strlcpy (retval->name, name, sizeof retval->name);