From: Greg Kroah-Hartman Date: Sat, 30 Aug 2014 23:51:21 +0000 (-0700) Subject: greybus: gpio: tie into gb core properly X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~2174 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=426f29d6be1272dc3e7678144d2ef2a89a1fdd1d;p=karo-tx-linux.git greybus: gpio: tie into gb core properly --- diff --git a/drivers/staging/greybus/gpio-gb.c b/drivers/staging/greybus/gpio-gb.c index 30b15ed32e12..7b8b85f6f9e5 100644 --- a/drivers/staging/greybus/gpio-gb.c +++ b/drivers/staging/greybus/gpio-gb.c @@ -77,7 +77,7 @@ int gb_gpio_probe(struct greybus_device *gdev, gpio->ngpio = 42; // FIXME!!! gpio->can_sleep = false; // FIXME!!! - greybus_set_drvdata(gdev, gb_gpio); + gdev->gb_gpio_dev= gb_gpio; retval = gpiochip_add(gpio); if (retval) { @@ -92,7 +92,7 @@ void gb_gpio_disconnect(struct greybus_device *gdev) { struct gb_gpio_device *gb_gpio_dev; - gb_gpio_dev = greybus_get_drvdata(gdev); + gb_gpio_dev = gdev->gb_gpio_dev; gpiochip_remove(&gb_gpio_dev->chip); }