aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/imx.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski.k@gmail.com>2015-05-02 00:40:02 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-10 19:08:16 +0200
commit31ada047681834d0d6f04adfb305ff26b52d2823 (patch)
tree50e169c2bc559eda5b61a06bb49df1336354b72a /drivers/tty/serial/imx.c
parentserial: sh-sci: Remove obsolete comment about overrun detection (diff)
downloadlinux-dev-31ada047681834d0d6f04adfb305ff26b52d2823.tar.xz
linux-dev-31ada047681834d0d6f04adfb305ff26b52d2823.zip
serial: imx: Constify platform_device_id
The platform_device_id is not modified by the driver and core uses it as const. Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/imx.c')
-rw-r--r--drivers/tty/serial/imx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
index 8aff0b4d8ddf..91e36bcfde74 100644
--- a/drivers/tty/serial/imx.c
+++ b/drivers/tty/serial/imx.c
@@ -239,7 +239,7 @@ static struct imx_uart_data imx_uart_devdata[] = {
},
};
-static struct platform_device_id imx_uart_devtype[] = {
+static const struct platform_device_id imx_uart_devtype[] = {
{
.name = "imx1-uart",
.driver_data = (kernel_ulong_t) &imx_uart_devdata[IMX1_UART],