Skip to content

Commit

Permalink
[PATCH] ARM: 2728/1: S3C2410 - fix constant warning on serial device …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Ben Dooks authored and Russell King committed Jun 23, 2005
1 parent c1241c4 commit d9dc580
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/serial/s3c2410.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit d9dc580

Please sign in to comment.