ramips: replace pinctrl property names
[openwrt/openwrt.git] / target / linux / ramips / patches-4.14 / 0027-GPIO-MIPS-ralink-add-gpio-driver-for-ralink-SoC.patch
index eaae0d3d02f70a9cac69c50d13e4a8dba2b7a956..35cedf61fdf04eebd79011f9d0fd90621a2fdb2e 100644 (file)
@@ -371,7 +371,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;