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

net: via-rhine: 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
d2b75a3f abae1e07

+1 -1
+1 -1
drivers/net/ethernet/via/via-rhine.c
··· 288 288 * The .data field is currently only used to store quirks 289 289 */ 290 290 static u32 vt8500_quirks = rqWOL | rqForceReset | rq6patterns; 291 - static struct of_device_id rhine_of_tbl[] = { 291 + static const struct of_device_id rhine_of_tbl[] = { 292 292 { .compatible = "via,vt8500-rhine", .data = &vt8500_quirks }, 293 293 { } /* terminate list */ 294 294 };