summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-06-15 17:08:40 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-20 10:24:15 +0800
commit519495431d04acc8bfb681a5455f163c6a14206b (patch)
treea99c42fe8c2a2d70e4a3b98af36fa222d56c9a8c /drivers/tty
parent7b45fff006dd17ca7752e772bf9d347266e081b1 (diff)
downloadtalos-obmc-linux-519495431d04acc8bfb681a5455f163c6a14206b.tar.gz
talos-obmc-linux-519495431d04acc8bfb681a5455f163c6a14206b.zip
serial: sirf: make of_device_ids const
of_device_ids are not supposed to change at runtime. All functions working with of_device_ids provided by <linux/of.h> work with const of_device_ids. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/sirfsoc_uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/sirfsoc_uart.c b/drivers/tty/serial/sirfsoc_uart.c
index e03282d92b59..684cb8dd8050 100644
--- a/drivers/tty/serial/sirfsoc_uart.c
+++ b/drivers/tty/serial/sirfsoc_uart.c
@@ -1253,7 +1253,7 @@ next_hrt:
return HRTIMER_RESTART;
}
-static struct of_device_id sirfsoc_uart_ids[] = {
+static const struct of_device_id sirfsoc_uart_ids[] = {
{ .compatible = "sirf,prima2-uart", .data = &sirfsoc_uart,},
{ .compatible = "sirf,atlas7-uart", .data = &sirfsoc_uart},
{ .compatible = "sirf,prima2-usp-uart", .data = &sirfsoc_usp},
OpenPOWER on IntegriCloud