mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
greybus: actually get the devm() change to build...
This commit is contained in:
parent
e5f167f1df
commit
8bf23e84d7
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue