ramips: fix HiWiFi HC5761A switch settings
[openwrt/openwrt.git] / target / linux / brcm47xx / patches-4.14 / 901-Revert-bcma-switch-GPIO-portions-to-use-GPIOLIB_IRQC.patch
index f1cfcd3e12cd116e729209694991dcb26875fb67..3ec853951f0ee20d49d31b5c3883069fb345c8e4 100644 (file)
@@ -188,7 +188,7 @@ Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
        chip->direction_input   = bcma_gpio_direction_input;
        chip->direction_output  = bcma_gpio_direction_output;
 -      chip->owner             = THIS_MODULE;
--      chip->parent            = bcma_bus_get_host_dev(bus);
+-      chip->parent            = bus->dev;
 +#if IS_BUILTIN(CONFIG_BCM47XX) || IS_BUILTIN(CONFIG_ARCH_BCM_5301X)
 +      chip->to_irq            = bcma_gpio_to_irq;
 +#endif