Commit 153890b4 authored by Arvind Yadav's avatar Arvind Yadav Committed by David S. Miller

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: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9142b673
...@@ -643,7 +643,7 @@ static int a2065_init_one(struct zorro_dev *z, ...@@ -643,7 +643,7 @@ static int a2065_init_one(struct zorro_dev *z,
static void a2065_remove_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_1 },
{ ZORRO_PROD_CBM_A2065_2 }, { ZORRO_PROD_CBM_A2065_2 },
{ ZORRO_PROD_AMERISTAR_A2065 }, { ZORRO_PROD_AMERISTAR_A2065 },
......
...@@ -692,7 +692,7 @@ static void ariadne_remove_one(struct zorro_dev *z) ...@@ -692,7 +692,7 @@ static void ariadne_remove_one(struct zorro_dev *z)
free_netdev(dev); free_netdev(dev);
} }
static struct zorro_device_id ariadne_zorro_tbl[] = { static const struct zorro_device_id ariadne_zorro_tbl[] = {
{ ZORRO_PROD_VILLAGE_TRONIC_ARIADNE }, { ZORRO_PROD_VILLAGE_TRONIC_ARIADNE },
{ 0 } { 0 }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment