serial: altera: Make of_device_id arrays const

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>
This commit is contained in:
Tobias Klauser 2014-08-05 09:14:35 +02:00 коммит произвёл Greg Kroah-Hartman
Родитель 864119917d
Коммит 4d199a55c4
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -462,7 +462,7 @@ static int altera_jtaguart_remove(struct platform_device *pdev)
} }
#ifdef CONFIG_OF #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", },
{ .compatible = "altr,juart-1.0", }, { .compatible = "altr,juart-1.0", },
{}, {},

Просмотреть файл

@ -610,7 +610,7 @@ static int altera_uart_remove(struct platform_device *pdev)
} }
#ifdef CONFIG_OF #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", },
{ .compatible = "altr,uart-1.0", }, { .compatible = "altr,uart-1.0", },
{}, {},