X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fpatches-6.6%2F802-GPIO-MIPS-ralink-add-gpio-driver-for-ralink-SoC.patch;fp=target%2Flinux%2Framips%2Fpatches-6.6%2F802-GPIO-MIPS-ralink-add-gpio-driver-for-ralink-SoC.patch;h=75a7374054ae6f9b2fc930d6676a13fd65bccaa4;hb=0e5fb421a997bc9862a996fe93f63d5fe8bcb195;hp=ff60b33cd42d808a0ef02d27dd6c4352a45ef635;hpb=4b8b7438f78346ccc3fc7393a3d026f63df0cdcd;p=openwrt%2Fstaging%2Fstintel.git diff --git a/target/linux/ramips/patches-6.6/802-GPIO-MIPS-ralink-add-gpio-driver-for-ralink-SoC.patch b/target/linux/ramips/patches-6.6/802-GPIO-MIPS-ralink-add-gpio-driver-for-ralink-SoC.patch index ff60b33cd4..75a7374054 100644 --- a/target/linux/ramips/patches-6.6/802-GPIO-MIPS-ralink-add-gpio-driver-for-ralink-SoC.patch +++ b/target/linux/ramips/patches-6.6/802-GPIO-MIPS-ralink-add-gpio-driver-for-ralink-SoC.patch @@ -47,7 +47,7 @@ Cc: linux-gpio@vger.kernel.org +#endif /* __ASM_MACH_RALINK_GPIO_H */ --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig -@@ -585,6 +585,12 @@ config GPIO_SNPS_CREG +@@ -594,6 +594,12 @@ config GPIO_SNPS_CREG where only several fields in register belong to GPIO lines and each GPIO line owns a field with different length and on/off value. @@ -62,7 +62,7 @@ Cc: linux-gpio@vger.kernel.org depends on PLAT_SPEAR --- a/drivers/gpio/Makefile +++ b/drivers/gpio/Makefile -@@ -122,6 +122,7 @@ obj-$(CONFIG_GPIO_PISOSR) += gpio-pisos +@@ -130,6 +130,7 @@ obj-$(CONFIG_GPIO_PISOSR) += gpio-pisos obj-$(CONFIG_GPIO_PL061) += gpio-pl061.o obj-$(CONFIG_GPIO_PMIC_EIC_SPRD) += gpio-pmic-eic-sprd.o obj-$(CONFIG_GPIO_PXA) += gpio-pxa.o @@ -84,7 +84,7 @@ Cc: linux-gpio@vger.kernel.org + +#include +#include -+#include ++#include +#include +#include +#include @@ -373,7 +373,7 @@ Cc: linux-gpio@vger.kernel.org + + rg->chip.parent = &pdev->dev; + rg->chip.label = dev_name(&pdev->dev); -+ rg->chip.of_node = np; ++ rg->chip.fwnode = of_node_to_fwnode(np); + rg->chip.ngpio = be32_to_cpu(*ngpio); + rg->chip.direction_input = ralink_gpio_direction_input; + rg->chip.direction_output = ralink_gpio_direction_output;