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:
Родитель
9142b673a7
Коммит
153890b41b
|
@ -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 },
|
||||
|
|
|
@ -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 }
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче