Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: ethernet: apple: 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>

authored by

Fabian Frederick and committed by
David S. Miller
14448e2f a6b0dc2a

+2 -2
+1 -1
drivers/net/ethernet/apple/bmac.c
··· 1621 1621 return 0; 1622 1622 } 1623 1623 1624 - static struct of_device_id bmac_match[] = 1624 + static const struct of_device_id bmac_match[] = 1625 1625 { 1626 1626 { 1627 1627 .name = "bmac",
+1 -1
drivers/net/ethernet/apple/mace.c
··· 984 984 return IRQ_HANDLED; 985 985 } 986 986 987 - static struct of_device_id mace_match[] = 987 + static const struct of_device_id mace_match[] = 988 988 { 989 989 { 990 990 .name = "mace",