gpio: samsung: Skip registration if pinctrl driver is present on EXYNOS4X12
authorTomasz Figa <t.figa@samsung.com>
Tue, 6 Nov 2012 23:44:55 +0000 (08:44 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Wed, 7 Nov 2012 00:12:11 +0000 (09:12 +0900)
commitba51bdd306a21ab0fabbea3a92541af0ee9fb8f6
tree5da61d517f768e7a321a2ff7f9c1fc916798828f
parentab7b51ff9e3713995fb5f5a2ded22af06aed2847
gpio: samsung: Skip registration if pinctrl driver is present on EXYNOS4X12

This patch modifies the Samsung GPIO driver to check for pinctrl driver
presence earlier and use generic matching instead of a single compatible
value.

This allows us to fix warning about unrecognized SoC in case of
EXYNOS4X12, which is not supported by this driver.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Thomas Abraham <thomas.abraham@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
drivers/gpio/gpio-samsung.c