ar71xx: Add kernel 4.9 support
[openwrt/staging/stintel.git] / target / linux / ar71xx / files / drivers / gpio / gpio-nxp-74hc153.c
index 8c01efe4a00599877196c422ad606fd65dd5a946..1355e3ff6e588d8af636b8de20697debcd2fd08b 100644 (file)
@@ -168,7 +168,11 @@ static int nxp_74hc153_probe(struct platform_device *pdev)
        gc->base = pdata->gpio_base;
        gc->ngpio = NXP_74HC153_NUM_GPIOS;
        gc->label = dev_name(nxp->parent);
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,5,0)
        gc->dev = nxp->parent;
+#else
+       gc->parent = nxp->parent;
+#endif
        gc->owner = THIS_MODULE;
 
        err = gpiochip_add(&nxp->gpio_chip);