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

Commit cd469106 authored by Mark Brown's avatar Mark Brown
Browse files

spi/s3c64xx: Rely on the compiler eliminating the OF ID table



This should work with modern compilers, isn't that much of an issue if
it goes wrong and it ensures that the DT-only hardware variants don't
leave unreferenced parameters structures lying around.

Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent bff82038
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -1641,7 +1641,6 @@ static struct platform_device_id s3c64xx_spi_driver_ids[] = {
	{ },
	{ },
};
};


#ifdef CONFIG_OF
static const struct of_device_id s3c64xx_spi_dt_match[] = {
static const struct of_device_id s3c64xx_spi_dt_match[] = {
	{ .compatible = "samsung,exynos4210-spi",
	{ .compatible = "samsung,exynos4210-spi",
			.data = (void *)&exynos4_spi_port_config,
			.data = (void *)&exynos4_spi_port_config,
@@ -1652,7 +1651,6 @@ static const struct of_device_id s3c64xx_spi_dt_match[] = {
	{ },
	{ },
};
};
MODULE_DEVICE_TABLE(of, s3c64xx_spi_dt_match);
MODULE_DEVICE_TABLE(of, s3c64xx_spi_dt_match);
#endif /* CONFIG_OF */


static struct platform_driver s3c64xx_spi_driver = {
static struct platform_driver s3c64xx_spi_driver = {
	.driver = {
	.driver = {