error: 'struct gpio_chip' has no member named 'dev'

Hi ,
I am running the following Kernel on my board:

`
Linux version 4.5.2-armv7-x2 gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02) ) #1 SMP Wed May 11 12:23:19 CEST 2016

`

I am getting the following error while compiling the kernel version from Robert Nelson for the module PCA9535 as buil-in:

`
drivers/gpio/gpio-pca953x-pdata.c: In function ‘pca953x_setup_gpio’:
drivers/gpio/gpio-pca953x-pdata.c:362:4: error: ‘struct gpio_chip’ has no member named ‘dev’
gc->dev = &chip->client->dev;
^
make[2]: *** [drivers/gpio/gpio-pca953x-pdata.o] Error 1
make[1]: *** [drivers/gpio] Error 2
make: *** [drivers] Error 2

the line of the code is the following:

tatic void pca953x_setup_gpio(struct pca953x_chip *chip, int gpios)
{
struct gpio_chip *gc;

gc = &chip->gpio_chip;

gc->direction_input = pca953x_gpio_direction_input;
gc->direction_output = pca953x_gpio_direction_output;
gc->get = pca953x_gpio_get_value;
gc->set = pca953x_gpio_set_value;
gc->can_sleep = 1;

gc->base = chip->gpio_start;
gc->ngpio = gpios;
gc->label = chip->client->name;
gc->dev = &chip->client->dev;
gc->owner = THIS_MODULE;
gc->names = chip->names;
}

`

I am using the code of
/*

  • PCA953x 4/8/16 bit I/O ports

Same problem