tty: serial: msm: Make of_device_id array const
authorKiran Padwal <kiran.padwal21@gmail.com>
Wed, 23 Jul 2014 10:26:26 +0000 (15:56 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jul 2014 01:56:18 +0000 (18:56 -0700)
Make of_device_id array const, because all OF functions handle it as const.

Signed-off-by: Kiran Padwal <kiran.padwal@smartplayin.com>
Acked-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/msm_serial.c

index c549110509bbed97c12167e3b9e48e3b5e2c77dc..0da0b5474e985fc1680f4ceb64f57181efba7d6f 100644 (file)
@@ -1065,7 +1065,7 @@ static int msm_serial_remove(struct platform_device *pdev)
        return 0;
 }
 
-static struct of_device_id msm_match_table[] = {
+static const struct of_device_id msm_match_table[] = {
        { .compatible = "qcom,msm-uart" },
        { .compatible = "qcom,msm-uartdm" },
        {}