From: Tomoya MORINAGA Date: Wed, 19 Oct 2011 01:37:40 +0000 (+0900) Subject: gpio-ml-ioh: Use NUMA_NO_NODE not GFP_KERNEL X-Git-Tag: v3.2~259^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a7aaa4f888968b1261c2701cc66f18a3d4b9777b;p=platform%2Fkernel%2Flinux-amlogic.git 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 Reported-by: David Rientjes Signed-off-by: Tomoya MORINAGA Acked-by: David Rientjes Signed-off-by: Grant Likely --- diff --git a/drivers/gpio/gpio-ml-ioh.c b/drivers/gpio/gpio-ml-ioh.c index 274fd4d..3aa6bee 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, chip = chip_save; for (j = 0; j < 8; j++, chip++) { irq_base = irq_alloc_descs(-1, IOH_IRQ_BASE, num_ports[j], - GFP_KERNEL); + NUMA_NO_NODE); if (irq_base < 0) { dev_warn(&pdev->dev, "ml_ioh_gpio: Failed to get IRQ base num\n");