greybus: actually get the devm() change to build...
authorGreg Kroah-Hartman <greg@kroah.com>
Sun, 31 Aug 2014 00:18:04 +0000 (17:18 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Sun, 31 Aug 2014 00:18:04 +0000 (17:18 -0700)
drivers/staging/greybus/gpio-gb.c
drivers/staging/greybus/uart-gb.c

index 43fd0d3..2047794 100644 (file)
@@ -59,7 +59,7 @@ int gb_gpio_probe(struct greybus_device *gdev,
        struct device *dev = &gdev->dev;
        int retval;
 
-       gb_gpio = kzalloc(dev, sizeof(*gb_gpio), GFP_KERNEL);
+       gb_gpio = kzalloc(sizeof(*gb_gpio), GFP_KERNEL);
        if (!gb_gpio)
                return -ENOMEM;
        gb_gpio->gdev = gdev;
index 298b9ff..f667b5c 100644 (file)
@@ -390,7 +390,7 @@ int gb_tty_probe(struct greybus_device *gdev,
        int retval;
        int minor;
 
-       gb_tty = kzalloc(&gdev->dev, sizeof(*gb_tty), GFP_KERNEL);
+       gb_tty = kzalloc(sizeof(*gb_tty), GFP_KERNEL);
        if (!gb_tty)
                return -ENOMEM;