spi/s3c64xx: Rely on the compiler eliminating the OF ID table
Subsystems (3)
Mark Brown
maintainerPATCH 1/1 spi/s3c64xx: Rely on the compiler eliminating the OF ID table
From: Mark Brown <[email protected]>
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 <[email protected]>
--- drivers/spi/spi-s3c64xx.c | 2 -- 1 file changed, 2 deletions(-)
drivers/spi/spi-s3c64xx.c +0 -2
@@ -1640,7 +1640,6 @@ static struct platform_device_id s3c64xx_spi_driver_ids[] = { { }, }; -#ifdef CONFIG_OFstatic const struct of_device_id s3c64xx_spi_dt_match[] = { { .compatible ="samsung,exynos4210-spi" , .data = (void *)&exynos4_spi_port_config,
@@ -1651,7 +1650,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 = {
Signature · 1 line
1.8.3.1