diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2012-05-21 15:57:39 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2012-09-11 02:55:59 -0400 |
commit | 76d28e441ee967f49ec36f34664d54118c438ecd (patch) | |
tree | 1a07651e6dd91489c5649bb6a28a1f70942e9664 | |
parent | e83d17ea564b45f383f01b2d9e38b3cded7ae680 (diff) |
serial/mpc52xx_uart: add a const qualifier
This prepares *of_device_id.data becoming const. Without this change
the following warning would occur:
drivers/tty/serial/mpc52xx_uart.c: In function 'mpc52xx_uart_of_enumerate':
drivers/tty/serial/mpc52xx_uart.c:1440:11: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
-rw-r--r-- | drivers/tty/serial/mpc52xx_uart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/mpc52xx_uart.c b/drivers/tty/serial/mpc52xx_uart.c index bedac0d4c9ce..b131f2d885d4 100644 --- a/drivers/tty/serial/mpc52xx_uart.c +++ b/drivers/tty/serial/mpc52xx_uart.c | |||
@@ -598,7 +598,7 @@ static struct psc_ops mpc512x_psc_ops = { | |||
598 | }; | 598 | }; |
599 | #endif | 599 | #endif |
600 | 600 | ||
601 | static struct psc_ops *psc_ops; | 601 | static const struct psc_ops *psc_ops; |
602 | 602 | ||
603 | /* ======================================================================== */ | 603 | /* ======================================================================== */ |
604 | /* UART operations */ | 604 | /* UART operations */ |