aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/samsung.c
diff options
context:
space:
mode:
authorThomas Abraham <thomas.abraham@linaro.org>2013-01-01 03:21:55 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-16 00:57:44 -0500
commit41147bfdc5c0d6acb39d2b3b8a4eb6ffb08e4b42 (patch)
tree1f2ab3b6fff41524b1233cdeacd6d9484af639a4 /drivers/tty/serial/samsung.c
parent81a7d777497aa4f8c4b5f46b2b8b978779840462 (diff)
serial: samsung: remove the use of statically remapped controller address
The address S3C_VA_UART is a statically ioremapped address. The driver should not be using this. Instead, the driver should setup a mapping during probe. Cc: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/samsung.c')
-rw-r--r--drivers/tty/serial/samsung.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c
index 12e5249d053e..96ae08f34770 100644
--- a/drivers/tty/serial/samsung.c
+++ b/drivers/tty/serial/samsung.c
@@ -47,7 +47,6 @@
47#include <asm/irq.h> 47#include <asm/irq.h>
48 48
49#include <mach/hardware.h> 49#include <mach/hardware.h>
50#include <mach/map.h>
51 50
52#include <plat/regs-serial.h> 51#include <plat/regs-serial.h>
53#include <plat/clock.h> 52#include <plat/clock.h>
@@ -1144,8 +1143,13 @@ static int s3c24xx_serial_init_port(struct s3c24xx_uart_port *ourport,
1144 1143
1145 dbg("resource %p (%lx..%lx)\n", res, res->start, res->end); 1144 dbg("resource %p (%lx..%lx)\n", res, res->start, res->end);
1146 1145
1146 port->membase = devm_ioremap(port->dev, res->start, resource_size(res));
1147 if (!port->membase) {
1148 dev_err(port->dev, "failed to remap controller address\n");
1149 return -EBUSY;
1150 }
1151
1147 port->mapbase = res->start; 1152 port->mapbase = res->start;
1148 port->membase = S3C_VA_UART + (res->start & 0xfffff);
1149 ret = platform_get_irq(platdev, 0); 1153 ret = platform_get_irq(platdev, 0);
1150 if (ret < 0) 1154 if (ret < 0)
1151 port->irq = 0; 1155 port->irq = 0;