summaryrefslogtreecommitdiffstats
path: root/drivers/serial/s3c2410.c
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2005-06-23 21:56:46 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2005-06-23 21:56:46 +0100
commitd9dc58049d3ed5c63c1a6ac82c217558b4ec623a (patch)
treefc42f673e83d98baa929e96d3de2f21af911d22f /drivers/serial/s3c2410.c
parentc1241c4c3a1507d76c7b987130f2f02f53ecc09f (diff)
downloadop-kernel-dev-d9dc58049d3ed5c63c1a6ac82c217558b4ec623a.zip
op-kernel-dev-d9dc58049d3ed5c63c1a6ac82c217558b4ec623a.tar.gz
[PATCH] ARM: 2728/1: S3C2410 - fix constant warning on serial device name
Patch from Ben Dooks Remove warning of casting `const char *` to a `char *` type. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/serial/s3c2410.c')
-rw-r--r--drivers/serial/s3c2410.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/serial/s3c2410.c b/drivers/serial/s3c2410.c
index 2a9f7ad..5c46784 100644
--- a/drivers/serial/s3c2410.c
+++ b/drivers/serial/s3c2410.c
@@ -198,7 +198,7 @@ static inline struct s3c24xx_uart_port *to_ourport(struct uart_port *port)
/* translate a port to the device name */
-static inline char *s3c24xx_serial_portname(struct uart_port *port)
+static inline const char *s3c24xx_serial_portname(struct uart_port *port)
{
return to_platform_device(port->dev)->name;
}
@@ -903,7 +903,7 @@ static void s3c24xx_serial_release_port(struct uart_port *port)
static int s3c24xx_serial_request_port(struct uart_port *port)
{
- char *name = s3c24xx_serial_portname(port);
+ const char *name = s3c24xx_serial_portname(port);
return request_mem_region(port->mapbase, MAP_SIZE, name) ? 0 : -EBUSY;
}
OpenPOWER on IntegriCloud