aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/samsung.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-08 03:00:14 -0500
committerKukjin Kim <kgene.kim@samsung.com>2011-12-22 20:07:01 -0500
commita169a888bf8c5490ae0377fcd0ad22c6af9fd8e7 (patch)
tree0ed1f600c1c5688fbd7746259728d934f0a98965 /drivers/tty/serial/samsung.c
parent26c919e1d3f4dff87ad50e104670f048cbc69b17 (diff)
serial: samsung: Fix build for non-Exynos4210 devices
exynos4120_serial_drv_data is only defined when building with support for Exynos4210 so use the already provided define to ensure that we don't reference it when building for other SoCs. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> [kgene.kim@samsung.com: Fixed build warning] Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'drivers/tty/serial/samsung.c')
-rw-r--r--drivers/tty/serial/samsung.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c
index efe3756b53f9..f96f37b5fec6 100644
--- a/drivers/tty/serial/samsung.c
+++ b/drivers/tty/serial/samsung.c
@@ -1649,7 +1649,7 @@ MODULE_DEVICE_TABLE(platform, s3c24xx_serial_driver_ids);
1649#ifdef CONFIG_OF 1649#ifdef CONFIG_OF
1650static const struct of_device_id s3c24xx_uart_dt_match[] = { 1650static const struct of_device_id s3c24xx_uart_dt_match[] = {
1651 { .compatible = "samsung,exynos4210-uart", 1651 { .compatible = "samsung,exynos4210-uart",
1652 .data = &exynos4210_serial_drv_data }, 1652 .data = (void *)EXYNOS4210_SERIAL_DRV_DATA },
1653 {}, 1653 {},
1654}; 1654};
1655MODULE_DEVICE_TABLE(of, s3c24xx_uart_dt_match); 1655MODULE_DEVICE_TABLE(of, s3c24xx_uart_dt_match);