gpio-ml-ioh: Use NUMA_NO_NODE not GFP_KERNEL
authorTomoya MORINAGA <tomoya-linux@dsn.lapis-semi.com>
Wed, 19 Oct 2011 01:37:40 +0000 (10:37 +0900)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 20 Oct 2011 01:01:34 +0000 (19:01 -0600)
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>
drivers/gpio/gpio-ml-ioh.c

index 274fd4d..3aa6bee 100644 (file)
@@ -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");