Merge tag 'gpio-for-linus' of git://git.secretlab.ca/git/linux-2.6
[platform/upstream/kernel-adaptation-pc.git] / drivers / gpio / gpio-omap.c
index d335af1..d71e5bd 100644 (file)
@@ -1105,7 +1105,7 @@ static int __devinit omap_gpio_probe(struct platform_device *pdev)
        if (!pdata)
                return -EINVAL;
 
-       bank = devm_kzalloc(&pdev->dev, sizeof(struct gpio_bank), GFP_KERNEL);
+       bank = devm_kzalloc(dev, sizeof(struct gpio_bank), GFP_KERNEL);
        if (!bank) {
                dev_err(dev, "Memory alloc failed\n");
                return -ENOMEM;