diff options
author | Fabian Frederick <fabf@skynet.be> | 2015-03-17 14:40:25 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-17 15:00:23 -0400 |
commit | 47b61667937a11c7dd8bb81e7e0c3e6593d18e9a (patch) | |
tree | 6ffb3524049b4b99cf6937c27ffa4125474c6b7b | |
parent | 486e957033623656298a07c39a8bf2fd81db285b (diff) |
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>
-rw-r--r-- | drivers/net/ethernet/ibm/emac/core.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/ibm/emac/mal.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/ibm/emac/rgmii.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/ibm/emac/tah.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/ibm/emac/zmii.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/ethernet/ibm/emac/core.c b/drivers/net/ethernet/ibm/emac/core.c index 162762d1a12c..8a17b97baa20 100644 --- a/drivers/net/ethernet/ibm/emac/core.c +++ b/drivers/net/ethernet/ibm/emac/core.c | |||
@@ -2981,7 +2981,7 @@ static int emac_remove(struct platform_device *ofdev) | |||
2981 | } | 2981 | } |
2982 | 2982 | ||
2983 | /* XXX Features in here should be replaced by properties... */ | 2983 | /* XXX Features in here should be replaced by properties... */ |
2984 | static struct of_device_id emac_match[] = | 2984 | static const struct of_device_id emac_match[] = |
2985 | { | 2985 | { |
2986 | { | 2986 | { |
2987 | .type = "network", | 2987 | .type = "network", |
diff --git a/drivers/net/ethernet/ibm/emac/mal.c b/drivers/net/ethernet/ibm/emac/mal.c index dddaab11a4c7..fdb5cdb3cd15 100644 --- a/drivers/net/ethernet/ibm/emac/mal.c +++ b/drivers/net/ethernet/ibm/emac/mal.c | |||
@@ -753,7 +753,7 @@ static int mal_remove(struct platform_device *ofdev) | |||
753 | return 0; | 753 | return 0; |
754 | } | 754 | } |
755 | 755 | ||
756 | static struct of_device_id mal_platform_match[] = | 756 | static const struct of_device_id mal_platform_match[] = |
757 | { | 757 | { |
758 | { | 758 | { |
759 | .compatible = "ibm,mcmal", | 759 | .compatible = "ibm,mcmal", |
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) | |||
305 | return 0; | 305 | return 0; |
306 | } | 306 | } |
307 | 307 | ||
308 | static struct of_device_id rgmii_match[] = | 308 | static const struct of_device_id rgmii_match[] = |
309 | { | 309 | { |
310 | { | 310 | { |
311 | .compatible = "ibm,rgmii", | 311 | .compatible = "ibm,rgmii", |
diff --git a/drivers/net/ethernet/ibm/emac/tah.c b/drivers/net/ethernet/ibm/emac/tah.c index cb18e7f917c6..32cb6c9007c5 100644 --- a/drivers/net/ethernet/ibm/emac/tah.c +++ b/drivers/net/ethernet/ibm/emac/tah.c | |||
@@ -148,7 +148,7 @@ static int tah_remove(struct platform_device *ofdev) | |||
148 | return 0; | 148 | return 0; |
149 | } | 149 | } |
150 | 150 | ||
151 | static struct of_device_id tah_match[] = | 151 | static const struct of_device_id tah_match[] = |
152 | { | 152 | { |
153 | { | 153 | { |
154 | .compatible = "ibm,tah", | 154 | .compatible = "ibm,tah", |
diff --git a/drivers/net/ethernet/ibm/emac/zmii.c b/drivers/net/ethernet/ibm/emac/zmii.c index 36409ccb75ea..8727b865ea02 100644 --- a/drivers/net/ethernet/ibm/emac/zmii.c +++ b/drivers/net/ethernet/ibm/emac/zmii.c | |||
@@ -295,7 +295,7 @@ static int zmii_remove(struct platform_device *ofdev) | |||
295 | return 0; | 295 | return 0; |
296 | } | 296 | } |
297 | 297 | ||
298 | static struct of_device_id zmii_match[] = | 298 | static const struct of_device_id zmii_match[] = |
299 | { | 299 | { |
300 | { | 300 | { |
301 | .compatible = "ibm,zmii", | 301 | .compatible = "ibm,zmii", |