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

net: ethoc: 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
fa2b1837 94e5a2a8

+1 -1
+1 -1
drivers/net/ethernet/ethoc.c
··· 1299 1299 # define ethoc_resume NULL 1300 1300 #endif 1301 1301 1302 - static struct of_device_id ethoc_match[] = { 1302 + static const struct of_device_id ethoc_match[] = { 1303 1303 { .compatible = "opencores,ethoc", }, 1304 1304 {}, 1305 1305 };