]> git.karo-electronics.de Git - linux-beck.git/commitdiff
serial: altera: Make of_device_id arrays const
authorTobias Klauser <tklauser@distanz.ch>
Tue, 5 Aug 2014 07:14:35 +0000 (09:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 22:28:28 +0000 (15:28 -0700)
Make the of_device_id arrays const, as it is handled as const by all OF
functions.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/altera_jtaguart.c
drivers/tty/serial/altera_uart.c

index d22e3d98ae23ead1c0877591bec04e3a11894bd0..932e01995c0aafab16d6eea4ac482c02d34d1854 100644 (file)
@@ -462,7 +462,7 @@ static int altera_jtaguart_remove(struct platform_device *pdev)
 }
 
 #ifdef CONFIG_OF
-static struct of_device_id altera_jtaguart_match[] = {
+static const struct of_device_id altera_jtaguart_match[] = {
        { .compatible = "ALTR,juart-1.0", },
        { .compatible = "altr,juart-1.0", },
        {},
index 6a243239dbefee1f0edaf06b62c306b13881192c..1cb2cdb1bc42ae1663bc93264392ebddf6e86f4a 100644 (file)
@@ -610,7 +610,7 @@ static int altera_uart_remove(struct platform_device *pdev)
 }
 
 #ifdef CONFIG_OF
-static struct of_device_id altera_uart_match[] = {
+static const struct of_device_id altera_uart_match[] = {
        { .compatible = "ALTR,uart-1.0", },
        { .compatible = "altr,uart-1.0", },
        {},