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>
This commit is contained in:

committed by
David S. Miller

parent
9142b673a7
commit
153890b41b
@@ -692,7 +692,7 @@ static void ariadne_remove_one(struct zorro_dev *z)
|
||||
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 },
|
||||
{ 0 }
|
||||
};
|
||||
|
Reference in New Issue
Block a user