summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/amd/a2065.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-22 20:11:12 +0200
committerDavid S. Miller <davem@davemloft.net>2017-08-22 23:35:36 +0200
commit153890b41b0ad467a89a77d48bb96f6bc3b14120 (patch)
tree4b7b234673219fed7cb265c1d2d6e55830d28d8a /drivers/net/ethernet/amd/a2065.c
parentMerge branch 'net-mvpp2-MAC-GoP-configuration' (diff)
downloadlinux-153890b41b0ad467a89a77d48bb96f6bc3b14120.tar.xz
linux-153890b41b0ad467a89a77d48bb96f6bc3b14120.zip
net: amd: constify zorro_device_id
zorro_device_id are not supposed to change at runtime. All functions working with zorro_device_id provided by <linux/zorro.h> work with const zorro_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/amd/a2065.c')
-rw-r--r--drivers/net/ethernet/amd/a2065.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/amd/a2065.c b/drivers/net/ethernet/amd/a2065.c
index ee4b94e3cda9..e22f976a0d18 100644
--- a/drivers/net/ethernet/amd/a2065.c
+++ b/drivers/net/ethernet/amd/a2065.c
@@ -643,7 +643,7 @@ static int a2065_init_one(struct zorro_dev *z,
static void a2065_remove_one(struct zorro_dev *z);
-static struct zorro_device_id a2065_zorro_tbl[] = {
+static const struct zorro_device_id a2065_zorro_tbl[] = {
{ ZORRO_PROD_CBM_A2065_1 },
{ ZORRO_PROD_CBM_A2065_2 },
{ ZORRO_PROD_AMERISTAR_A2065 },