--- a/drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c
+++ b/drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c
@@ -354,7 +354,7 @@ static int rt2880_pinmux_probe(struct pl
 		if (!of_device_is_available(np))
 			continue;
 
-		ngpio = of_get_property(np, "ralink,num-gpios", NULL);
+		ngpio = of_get_property(np, "ngpios", NULL);
 		gpiobase = of_get_property(np, "ralink,gpio-base", NULL);
 		if (!ngpio || !gpiobase) {
 			dev_err(&pdev->dev, "failed to load chip info\n");
