'commit 964a7e51240df ("gpio: mxc: Shift generic request/free after gpiochip registration")' introduced a build error because pin_ranges now moved to struct gpio_device. This commit fixes this build error by dereferencing gpio_device inside struct gpio_chip for pin_ranges. Signed-off-by: Deepak Das <deepak_das@xxxxxxxxxx> --- drivers/gpio/gpio-mxc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c index 9f79a9f..3128dad 100644 --- a/drivers/gpio/gpio-mxc.c +++ b/drivers/gpio/gpio-mxc.c @@ -36,6 +36,8 @@ #include <linux/of_device.h> #include <linux/bug.h> +#include "gpiolib.h" + enum mxc_gpio_hwtype { IMX1_GPIO, /* runs on i.mx1 */ IMX21_GPIO, /* runs on i.mx21 and i.mx27 */ @@ -466,7 +468,7 @@ static int mxc_gpio_probe(struct platform_device *pdev) if (err) goto out_bgio; - if (!list_empty(&port->gc.pin_ranges)) { + if (!list_empty(&port->gc.gpiodev->pin_ranges)) { port->gc.request = gpiochip_generic_request; port->gc.free = gpiochip_generic_free; } -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html