net: ethernet: apple: constify of_device_id array
authorFabian Frederick <fabf@skynet.be>
Tue, 17 Mar 2015 18:37:37 +0000 (19:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Mar 2015 19:00:22 +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/apple/bmac.c
drivers/net/ethernet/apple/mace.c

index daae0e01625360598194c76fcc4239a3283bc85c..2f98846e2d898c53f4955a318f0f9b623aa531f8 100644 (file)
@@ -1621,7 +1621,7 @@ static int bmac_remove(struct macio_dev *mdev)
        return 0;
 }
 
-static struct of_device_id bmac_match[] =
+static const struct of_device_id bmac_match[] =
 {
        {
        .name           = "bmac",
index 7fcaf0da42a8936e0f4c54ef03f8d3396d9f39d6..a18948286682527988a49b09f8c3c569071ec77b 100644 (file)
@@ -984,7 +984,7 @@ static irqreturn_t mace_rxdma_intr(int irq, void *dev_id)
     return IRQ_HANDLED;
 }
 
-static struct of_device_id mace_match[] =
+static const struct of_device_id mace_match[] =
 {
        {
        .name           = "mace",