greybus: gpio: handle api changes for 4.5 kernel release
authorGreg Kroah-Hartman <gregkh@google.com>
Wed, 24 Feb 2016 06:51:45 +0000 (22:51 -0800)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 25 Feb 2016 01:44:11 +0000 (17:44 -0800)
commitbb80c76448b2463a1ecfe622df4f7b3c5fb39cdf
tree0a35e41d4954042c892678f2159bf54a8fec233c
parent7a6396d9ce81564b09d91586b29fdd02e6814c28
greybus: gpio: handle api changes for 4.5 kernel release

In kernel version 4.5, struct gpio_chip renamed the field 'dev' to
'parent' so handle this properly.

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/gpio.c