diff options
author | Andrew Lunn <andrew@lunn.ch> | 2016-05-10 23:27:24 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-05-11 19:36:28 -0400 |
commit | ff04955c2f678a2c4c3207e0184c4c389da9d1e2 (patch) | |
tree | d21e3cc6db20f9c3ed39ef72166cba7de56bd69e /drivers/net/dsa/bcm_sf2.c | |
parent | c33063d6a0d83a553faacf32f3cb834e63d8ecd7 (diff) | |
download | blackbird-op-linux-ff04955c2f678a2c4c3207e0184c4c389da9d1e2.tar.gz blackbird-op-linux-ff04955c2f678a2c4c3207e0184c4c389da9d1e2.zip |
dsa: Rename switch chip data to cd
The dsa_switch structure contains a dsa_chip_data member called pd.
However in the rest of the code, pd is used for dsa_platform_data.
This is confusing. Rename it cd, which is already often used in dsa.c
and slave.c for this data type.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/bcm_sf2.c')
-rw-r--r-- | drivers/net/dsa/bcm_sf2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/dsa/bcm_sf2.c b/drivers/net/dsa/bcm_sf2.c index 448deb59b9a4..10ddd5a5dfb6 100644 --- a/drivers/net/dsa/bcm_sf2.c +++ b/drivers/net/dsa/bcm_sf2.c @@ -949,8 +949,8 @@ static int bcm_sf2_sw_setup(struct dsa_switch *ds) /* All the interesting properties are at the parent device_node * level */ - dn = ds->pd->of_node->parent; - bcm_sf2_identify_ports(priv, ds->pd->of_node); + dn = ds->cd->of_node->parent; + bcm_sf2_identify_ports(priv, ds->cd->of_node); priv->irq0 = irq_of_parse_and_map(dn, 0); priv->irq1 = irq_of_parse_and_map(dn, 1); |