Consider renaming the dev field to parent in the upstream.
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
+ if (IS_ERR(ar5312_mem))
+ return PTR_ERR(ar5312_mem);
+
-+ ar5312_gpio_chip.dev = dev;
++ ar5312_gpio_chip.parent = dev;
+ ret = gpiochip_add(&ar5312_gpio_chip);
+ if (ret) {
+ dev_err(dev, "failed to add gpiochip\n");
+ if (IS_ERR(ar2315_mem))
+ return PTR_ERR(ar2315_mem);
+
-+ ar2315_gpio_chip.dev = dev;
++ ar2315_gpio_chip.parent = dev;
+ ret = gpiochip_add(&ar2315_gpio_chip);
+ if (ret) {
+ dev_err(dev, "failed to add gpiochip\n");