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