kernel: bump 4.9 to 4.9.57
[openwrt/staging/hauke.git] / target / linux / ramips / patches-4.9 / 0025-pinctrl-ralink-add-pinctrl-driver.patch
index 6e0d6431f03962842914eecb7b9d94ce38eec4a7..2225454d19b141f28d984ef2abdca5bf86112aae 100644 (file)
@@ -25,7 +25,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
        bool "SGI IP22 (Indy/Indigo2)"
 --- a/drivers/pinctrl/Kconfig
 +++ b/drivers/pinctrl/Kconfig
-@@ -114,6 +114,11 @@ config PINCTRL_LPC18XX
+@@ -115,6 +115,11 @@ config PINCTRL_LPC18XX
        help
          Pinctrl driver for NXP LPC18xx/43xx System Control Unit (SCU).
  
@@ -193,7 +193,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
 +      }
 +
 +      if (!max_maps)
-+              return max_maps;
++              return -EINVAL;
 +
 +      *map = kzalloc(max_maps * sizeof(struct pinctrl_map), GFP_KERNEL);
 +      if (!*map)