Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d199a55 authored by Tobias Klauser's avatar Tobias Klauser Committed by Greg Kroah-Hartman
Browse files

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: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 86411991
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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", },
	{},
+1 −1
Original line number Diff line number Diff line
@@ -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", },
	{},