via-velocity: constify of_device_id array
authorFabian Frederick <fabf@skynet.be>
Tue, 17 Mar 2015 18:40:28 +0000 (19:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Mar 2015 19:00:24 +0000 (15:00 -0400)
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>
drivers/net/ethernet/via/via-velocity.c

index c20206f83cc1fdf3445cfc41139724f0dbdbdd92..ae68afd50a156199b6f74b2d2e65420cddd02c73 100644 (file)
@@ -392,7 +392,7 @@ MODULE_DEVICE_TABLE(pci, velocity_pci_id_table);
  *     Describe the OF device identifiers that we support in this
  *     device driver. Used for devicetree nodes.
  */
-static struct of_device_id velocity_of_ids[] = {
+static const struct of_device_id velocity_of_ids[] = {
        { .compatible = "via,velocity-vt6110", .data = &chip_info_table[0] },
        { /* Sentinel */ },
 };