Commit 8bf23e84 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

greybus: actually get the devm() change to build...

parent e5f167f1
...@@ -59,7 +59,7 @@ int gb_gpio_probe(struct greybus_device *gdev, ...@@ -59,7 +59,7 @@ int gb_gpio_probe(struct greybus_device *gdev,
struct device *dev = &gdev->dev; struct device *dev = &gdev->dev;
int retval; int retval;
gb_gpio = kzalloc(dev, sizeof(*gb_gpio), GFP_KERNEL); gb_gpio = kzalloc(sizeof(*gb_gpio), GFP_KERNEL);
if (!gb_gpio) if (!gb_gpio)
return -ENOMEM; return -ENOMEM;
gb_gpio->gdev = gdev; gb_gpio->gdev = gdev;
......
...@@ -390,7 +390,7 @@ int gb_tty_probe(struct greybus_device *gdev, ...@@ -390,7 +390,7 @@ int gb_tty_probe(struct greybus_device *gdev,
int retval; int retval;
int minor; int minor;
gb_tty = kzalloc(&gdev->dev, sizeof(*gb_tty), GFP_KERNEL); gb_tty = kzalloc(sizeof(*gb_tty), GFP_KERNEL);
if (!gb_tty) if (!gb_tty)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment