Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5517bec authored by Tomasz Figa's avatar Tomasz Figa Committed by Linus Walleij
Browse files

pinctrl: samsung: Include pinctrl-exynos driver data conditionally



Since pinctrl-samsung is a common part of the pin control support for
several Samsung SoCs, it can be compiled without Exynos support enabled.

This patch surrounds Exynos-specific driver data with ifdefs to include
them only when support for Exynos is enabled.

Signed-off-by: default avatarTomasz Figa <tomasz.figa@gmail.com>
[Fixed up EXYNOS4->EXYNOS]
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 19846950
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -968,10 +968,12 @@ static int samsung_pinctrl_probe(struct platform_device *pdev)
}

static const struct of_device_id samsung_pinctrl_dt_match[] = {
#ifdef CONFIG_PINCTRL_EXYNOS
	{ .compatible = "samsung,exynos4210-pinctrl",
		.data = (void *)exynos4210_pin_ctrl },
	{ .compatible = "samsung,exynos4x12-pinctrl",
		.data = (void *)exynos4x12_pin_ctrl },
#endif
	{},
};
MODULE_DEVICE_TABLE(of, samsung_pinctrl_dt_match);