Skip to content

Commit

Permalink
spi/s3c64xx: Rely on the compiler eliminating the OF ID table
Browse files Browse the repository at this point in the history
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: Mark Brown <broonie@linaro.org>
  • Loading branch information
Mark Brown committed Jun 26, 2013
1 parent bff8203 commit cd46910
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/spi/spi-s3c64xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = {
{ .compatible = "samsung,exynos4210-spi",
.data = (void *)&exynos4_spi_port_config,
Expand All @@ -1652,7 +1651,6 @@ static const struct of_device_id s3c64xx_spi_dt_match[] = {
{ },
};
MODULE_DEVICE_TABLE(of, s3c64xx_spi_dt_match);
#endif /* CONFIG_OF */

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

0 comments on commit cd46910

Please sign in to comment.