diff options
author | Fabian Frederick <fabf@skynet.be> | 2015-03-17 19:40:24 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-17 20:00:23 +0100 |
commit | 486e957033623656298a07c39a8bf2fd81db285b (patch) | |
tree | f1c176dcdf6af8607dfc72e5960567bc047bf3f6 /drivers/net/can/xilinx_can.c | |
parent | net: phy: constify of_device_id array (diff) | |
download | linux-486e957033623656298a07c39a8bf2fd81db285b.tar.xz linux-486e957033623656298a07c39a8bf2fd81db285b.zip |
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/xilinx_can.c')
-rw-r--r-- | drivers/net/can/xilinx_can.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/xilinx_can.c b/drivers/net/can/xilinx_can.c index 6c6764312285..6bddfe062b51 100644 --- a/drivers/net/can/xilinx_can.c +++ b/drivers/net/can/xilinx_can.c @@ -1185,7 +1185,7 @@ static int xcan_remove(struct platform_device *pdev) } /* Match table for OF platform binding */ -static struct of_device_id xcan_of_match[] = { +static const struct of_device_id xcan_of_match[] = { { .compatible = "xlnx,zynq-can-1.0", }, { .compatible = "xlnx,axi-can-1.00.a", }, { /* end of list */ }, |