aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTomoya MORINAGA <tomoya-linux@dsn.lapis-semi.com>2011-10-18 21:37:40 -0400
committerGrant Likely <grant.likely@secretlab.ca>2011-10-19 21:01:34 -0400
commita7aaa4f888968b1261c2701cc66f18a3d4b9777b (patch)
tree39bd3205e8d46fde63d992a3a43d5ce76b4377c9 /drivers
parent2824bc9c38dcb9a3e8f2d72a6ede8563c222959f (diff)
gpio-ml-ioh: Use NUMA_NO_NODE not GFP_KERNEL
Currently, GFP_KERNEL is used as parameter of irq_alloc_descs like below. irq_base = irq_alloc_descs(-1, IOH_IRQ_BASE, num_ports[j], GFP_KERNEL); This is not true. So, this patch uses NUMA_NO_NODE not GFP_KERNEL. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Reported-by: David Rientjes <rientjes@google.com> Signed-off-by: Tomoya MORINAGA <tomoya-linux@dsn.lapis-semi.com> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpio/gpio-ml-ioh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-ml-ioh.c b/drivers/gpio/gpio-ml-ioh.c
index 274fd4d0792..3aa6beec8c1 100644
--- a/drivers/gpio/gpio-ml-ioh.c
+++ b/drivers/gpio/gpio-ml-ioh.c
@@ -428,7 +428,7 @@ static int __devinit ioh_gpio_probe(struct pci_dev *pdev,
428 chip = chip_save; 428 chip = chip_save;
429 for (j = 0; j < 8; j++, chip++) { 429 for (j = 0; j < 8; j++, chip++) {
430 irq_base = irq_alloc_descs(-1, IOH_IRQ_BASE, num_ports[j], 430 irq_base = irq_alloc_descs(-1, IOH_IRQ_BASE, num_ports[j],
431 GFP_KERNEL); 431 NUMA_NO_NODE);
432 if (irq_base < 0) { 432 if (irq_base < 0) {
433 dev_warn(&pdev->dev, 433 dev_warn(&pdev->dev,
434 "ml_ioh_gpio: Failed to get IRQ base num\n"); 434 "ml_ioh_gpio: Failed to get IRQ base num\n");