forked from Ivasoft/openwrt
ar71xx: Add kernel 4.9 support
This add support for kernel 4.9 to the ar71xx target. It was compile tested with the generic, NAND and mikrotik subtarget. Multiple members of the community tested it on their boards and did not report any major problem so far. Especially the NAND part received some changes to adapt to the new kernel APIs. The serial driver hack used for the Arduino Yun was not ported because the kernel changed there a lot. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user