]> Pileus Git - ~andy/linux/commitdiff
gpio: samsung: skip gpio lib registration for EXYNOS5440
authorKukjin Kim <kgene.kim@samsung.com>
Thu, 20 Dec 2012 19:08:57 +0000 (11:08 -0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 17 Jan 2013 10:53:54 +0000 (11:53 +0100)
Since exynos5440 can support pinctrl so skip the legacy
gpiolib registration. If not, happens following.

WARNING: at drivers/gpio/gpio-samsung.c:3102 samsung_gpiolib_init+0x68/0x8c()
Unknown SoC in gpio-samsung, no GPIOs added

Acked-by: Thomas Abraham <thomas.ab@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-samsung.c

index c1f6bc2d87a9b5610e1b4a9bb36314c0fa9e6033..76be7eed79dec2683e244a0a9f60a1688241e1ab 100644 (file)
@@ -3025,6 +3025,7 @@ static __init int samsung_gpiolib_init(void)
        static const struct of_device_id exynos_pinctrl_ids[] = {
                { .compatible = "samsung,pinctrl-exynos4210", },
                { .compatible = "samsung,pinctrl-exynos4x12", },
+               { .compatible = "samsung,pinctrl-exynos5440", },
        };
        for_each_matching_node(pctrl_np, exynos_pinctrl_ids)
                if (pctrl_np && of_device_is_available(pctrl_np))