summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/ibm/emac/rgmii.c
diff options
context:
space:
mode:
authorFabian Frederick2015-03-17 19:40:25 +0100
committerDavid S. Miller2015-03-17 20:00:23 +0100
commit47b61667937a11c7dd8bb81e7e0c3e6593d18e9a (patch)
tree6ffb3524049b4b99cf6937c27ffa4125474c6b7b /drivers/net/ethernet/ibm/emac/rgmii.c
parentcan: constify of_device_id array (diff)
downloadkernel-qcow2-linux-47b61667937a11c7dd8bb81e7e0c3e6593d18e9a.tar.gz
kernel-qcow2-linux-47b61667937a11c7dd8bb81e7e0c3e6593d18e9a.tar.xz
kernel-qcow2-linux-47b61667937a11c7dd8bb81e7e0c3e6593d18e9a.zip
IBM-EMAC: 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>
Diffstat (limited to 'drivers/net/ethernet/ibm/emac/rgmii.c')
-rw-r--r--drivers/net/ethernet/ibm/emac/rgmii.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ibm/emac/rgmii.c b/drivers/net/ethernet/ibm/emac/rgmii.c
index 457088fc5b06..206ccbbae7bb 100644
--- a/drivers/net/ethernet/ibm/emac/rgmii.c
+++ b/drivers/net/ethernet/ibm/emac/rgmii.c
@@ -305,7 +305,7 @@ static int rgmii_remove(struct platform_device *ofdev)
return 0;
}
-static struct of_device_id rgmii_match[] =
+static const struct of_device_id rgmii_match[] =
{
{
.compatible = "ibm,rgmii",