summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/uartlite.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2015-03-16 19:17:11 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-26 21:49:10 (GMT)
commited0bb2323c9321b91dfa0ea8317fdc4d9592dce4 (patch)
tree2dfa6c5e00026501e022cb089fa5716bd0a5741a /drivers/tty/serial/uartlite.c
parent37ff5252b3ae141eba2dcf20693484e4b53176b1 (diff)
downloadlinux-ed0bb2323c9321b91dfa0ea8317fdc4d9592dce4.tar.xz
tty: constify of_device_id array
of_device_id is always used as const. (See driver.of_match_table and open firmware functions) Signed-off-by: Fabian Frederick <fabf@skynet.be> Acked-by: Peter Korsgaard <peter@korsgaard.com> Acked-by: Timur Tabi <timur@tabi.org> Acked-by: Patrice Chotard <patrice.chotard@st.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/uartlite.c')
-rw-r--r--drivers/tty/serial/uartlite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/uartlite.c b/drivers/tty/serial/uartlite.c
index 189f52e..708eead 100644
--- a/drivers/tty/serial/uartlite.c
+++ b/drivers/tty/serial/uartlite.c
@@ -622,7 +622,7 @@ static int ulite_release(struct device *dev)
#if defined(CONFIG_OF)
/* Match table for of_platform binding */
-static struct of_device_id ulite_of_match[] = {
+static const struct of_device_id ulite_of_match[] = {
{ .compatible = "xlnx,opb-uartlite-1.00.b", },
{ .compatible = "xlnx,xps-uartlite-1.00.a", },
{}