pinctrl: stm32: Remove check for pins-are-numbered
authorBernhard Rosenkränzer <bero@baylibre.com>
Tue, 29 Nov 2022 02:33:56 +0000 (03:33 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 3 Dec 2022 09:18:55 +0000 (10:18 +0100)
Remove the check for the unnecessary pins-are-numbered
DeviceTree property

Signed-off-by: Bernhard Rosenkränzer <bero@baylibre.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20221129023401.278780-3-bero@baylibre.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/stm32/pinctrl-stm32.c

index cc9472b284047c63de34c2d8b25dc65db09120c5..1cddca506ad7ea08f14e6fd30bbc90e78ddfd749 100644 (file)
@@ -1499,11 +1499,6 @@ int stm32_pctl_probe(struct platform_device *pdev)
        if (!match_data)
                return -EINVAL;
 
-       if (!device_property_present(dev, "pins-are-numbered")) {
-               dev_err(dev, "only support pins-are-numbered format\n");
-               return -EINVAL;
-       }
-
        pctl = devm_kzalloc(dev, sizeof(*pctl), GFP_KERNEL);
        if (!pctl)
                return -ENOMEM;