diff options
author | Hubert Feurstein <h.feurstein@gmail.com> | 2019-07-30 12:11:42 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-30 09:56:20 -0700 |
commit | 43c8e0ae76bdcb5c00b381c294c176b373316c8d (patch) | |
tree | 2c08b3df8f6d1d546974ecda6959a49bc7ced224 | |
parent | ab98c008ac761752cdc27f9eb053419feadeb2f7 (diff) | |
download | linux-43c8e0ae76bdcb5c00b381c294c176b373316c8d.tar.bz2 |
net: dsa: mv88e6xxx: use link-down-define instead of plain value
Using the define here makes the code more expressive.
Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/dsa/mv88e6xxx/chip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index c97dea4599a8..a0f288efcc12 100644 --- a/drivers/net/dsa/mv88e6xxx/chip.c +++ b/drivers/net/dsa/mv88e6xxx/chip.c @@ -430,7 +430,7 @@ int mv88e6xxx_port_setup_mac(struct mv88e6xxx_chip *chip, int port, int link, return 0; /* Port's MAC control must not be changed unless the link is down */ - err = chip->info->ops->port_set_link(chip, port, 0); + err = chip->info->ops->port_set_link(chip, port, LINK_FORCED_DOWN); if (err) return err; |