aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/ti
diff options
context:
space:
mode:
authorMugunthan V N <mugunthanvnm@ti.com>2013-03-11 19:16:35 -0400
committerDavid S. Miller <davem@davemloft.net>2013-03-13 04:38:19 -0400
commite86ac13b031cf71d8f40ff513e627aac80e6b765 (patch)
tree8f0027221533ef8b9ad028504f406505cd2ba205 /drivers/net/ethernet/ti
parent470d147428563aba9c2eb7c019383335249c6110 (diff)
drivers: net: ethernet: cpsw: change cpts_active_slave to active_slave
Change cpts_active_slave to active_slave so that the same DT property can be used to ethtool and SIOCGMIIPHY. CC: Richard Cochran <richardcochran@gmail.com> Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti')
-rw-r--r--drivers/net/ethernet/ti/cpsw.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c
index 01ffbc486982..98aa17a9516a 100644
--- a/drivers/net/ethernet/ti/cpsw.c
+++ b/drivers/net/ethernet/ti/cpsw.c
@@ -942,7 +942,7 @@ static void cpsw_ndo_change_rx_flags(struct net_device *ndev, int flags)
942 942
943static void cpsw_hwtstamp_v1(struct cpsw_priv *priv) 943static void cpsw_hwtstamp_v1(struct cpsw_priv *priv)
944{ 944{
945 struct cpsw_slave *slave = &priv->slaves[priv->data.cpts_active_slave]; 945 struct cpsw_slave *slave = &priv->slaves[priv->data.active_slave];
946 u32 ts_en, seq_id; 946 u32 ts_en, seq_id;
947 947
948 if (!priv->cpts->tx_enable && !priv->cpts->rx_enable) { 948 if (!priv->cpts->tx_enable && !priv->cpts->rx_enable) {
@@ -971,7 +971,7 @@ static void cpsw_hwtstamp_v2(struct cpsw_priv *priv)
971 if (priv->data.dual_emac) 971 if (priv->data.dual_emac)
972 slave = &priv->slaves[priv->emac_port]; 972 slave = &priv->slaves[priv->emac_port];
973 else 973 else
974 slave = &priv->slaves[priv->data.cpts_active_slave]; 974 slave = &priv->slaves[priv->data.active_slave];
975 975
976 ctrl = slave_read(slave, CPSW2_CONTROL); 976 ctrl = slave_read(slave, CPSW2_CONTROL);
977 ctrl &= ~CTRL_ALL_TS_MASK; 977 ctrl &= ~CTRL_ALL_TS_MASK;
@@ -1282,12 +1282,12 @@ static int cpsw_probe_dt(struct cpsw_platform_data *data,
1282 } 1282 }
1283 data->slaves = prop; 1283 data->slaves = prop;
1284 1284
1285 if (of_property_read_u32(node, "cpts_active_slave", &prop)) { 1285 if (of_property_read_u32(node, "active_slave", &prop)) {
1286 pr_err("Missing cpts_active_slave property in the DT.\n"); 1286 pr_err("Missing active_slave property in the DT.\n");
1287 ret = -EINVAL; 1287 ret = -EINVAL;
1288 goto error_ret; 1288 goto error_ret;
1289 } 1289 }
1290 data->cpts_active_slave = prop; 1290 data->active_slave = prop;
1291 1291
1292 if (of_property_read_u32(node, "cpts_clock_mult", &prop)) { 1292 if (of_property_read_u32(node, "cpts_clock_mult", &prop)) {
1293 pr_err("Missing cpts_clock_mult property in the DT.\n"); 1293 pr_err("Missing cpts_clock_mult property in the DT.\n");