summaryrefslogtreecommitdiffstats
path: root/drivers/net/can/grcan.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2015-03-17 19:40:24 +0100
committerDavid S. Miller <davem@davemloft.net>2015-03-17 15:00:23 -0400
commit486e957033623656298a07c39a8bf2fd81db285b (patch)
treef1c176dcdf6af8607dfc72e5960567bc047bf3f6 /drivers/net/can/grcan.c
parentd8a7dadbdfde042c07599e8ac90c7718aef76da7 (diff)
downloadop-kernel-dev-486e957033623656298a07c39a8bf2fd81db285b.zip
op-kernel-dev-486e957033623656298a07c39a8bf2fd81db285b.tar.gz
can: 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> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/can/grcan.c')
-rw-r--r--drivers/net/can/grcan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/grcan.c b/drivers/net/can/grcan.c
index fed1bbd..e3d7e22 100644
--- a/drivers/net/can/grcan.c
+++ b/drivers/net/can/grcan.c
@@ -1725,7 +1725,7 @@ static int grcan_remove(struct platform_device *ofdev)
return 0;
}
-static struct of_device_id grcan_match[] = {
+static const struct of_device_id grcan_match[] = {
{.name = "GAISLER_GRCAN"},
{.name = "01_03d"},
{.name = "GAISLER_GRHCAN"},
OpenPOWER on IntegriCloud