diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2017-01-18 02:41:39 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-18 22:49:47 +0100 |
commit | 9520ed8fb8410dcb6babf751561a08f73ca03812 (patch) | |
tree | ee7e664f866902ca3befac6dc0294c755dfa3b2d /drivers/net/ethernet/marvell/sky2.h | |
parent | net: dsa: store CPU switch structure in the tree (diff) | |
download | linux-9520ed8fb8410dcb6babf751561a08f73ca03812.tar.xz linux-9520ed8fb8410dcb6babf751561a08f73ca03812.zip |
net: dsa: use cpu_switch instead of ds[0]
Now that the DSA Ethernet switches are true Linux devices, the CPU
switch is not necessarily the first one. If its address is higher than
the second switch on the same MDIO bus, its index will be 1, not 0.
Avoid any confusion by using dst->cpu_switch instead of dst->ds[0].
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell/sky2.h')
0 files changed, 0 insertions, 0 deletions