]> Pileus Git - ~andy/linux/commitdiff
spi/s3c64xx: Rely on the compiler eliminating the OF ID table
authorMark Brown <broonie@linaro.org>
Wed, 26 Jun 2013 15:09:48 +0000 (16:09 +0100)
committerMark Brown <broonie@linaro.org>
Wed, 26 Jun 2013 15:20:38 +0000 (16:20 +0100)
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>
drivers/spi/spi-s3c64xx.c

index d170cc0d81a0d94a48bdbdcc0044361b09f563a1..ecc0f06d71ef05fa213de064c57c1a5ca96fc284 100644 (file)
@@ -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,
@@ -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 = {