]> git.karo-electronics.de Git - linux-beck.git/commitdiff
serial:imx make of_device_id array const
authorSanjeev Sharma <sanjeev_sharma@mentor.com>
Tue, 3 Feb 2015 10:46:06 +0000 (16:16 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Mar 2015 02:13:07 +0000 (03:13 +0100)
Make of_device_id array const.

Signed-off-by: Sanjeev Sharma <Sanjeev_Sharma@mentor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c

index 0eb29b1c47ac8ea313456df38a45f6720e62246b..412bfbf8730b65695bc2df18a98bdae48d711fdb 100644 (file)
@@ -273,7 +273,7 @@ static struct platform_device_id imx_uart_devtype[] = {
 };
 MODULE_DEVICE_TABLE(platform, imx_uart_devtype);
 
-static struct of_device_id imx_uart_dt_ids[] = {
+static const struct of_device_id imx_uart_dt_ids[] = {
        { .compatible = "fsl,imx6q-uart", .data = &imx_uart_devdata[IMX6Q_UART], },
        { .compatible = "fsl,imx1-uart", .data = &imx_uart_devdata[IMX1_UART], },
        { .compatible = "fsl,imx21-uart", .data = &imx_uart_devdata[IMX21_UART], },