ramips: replace pinctrl property names
[openwrt/openwrt.git] / target / linux / ramips / patches-5.4 / 0027-GPIO-MIPS-ralink-add-gpio-driver-for-ralink-SoC.patch
index 3d78ef40c6ed0c3b2155cc26b62b61653ccec4fb..eae507bcd7b608cb2dd90b0b14acd67ef57e10cf 100644 (file)
@@ -357,7 +357,7 @@ Cc: linux-gpio@vger.kernel.org
 +              return -EINVAL;
 +      }
 +
-+      ngpio = of_get_property(np, "ralink,nr-gpio", NULL);
++      ngpio = of_get_property(np, "ralink,num-gpios", NULL);
 +      if (!ngpio) {
 +              dev_err(&pdev->dev, "failed to read number of pins\n");
 +              return -EINVAL;