staging: fsl-dpaa2/ethsw: reword error message

In the current state, the dpaa2-ethsw driver supports only one bridge
per DPSW object. Reword the error message so that this information is
much more clear.

Suggested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Link: https://lore.kernel.org/r/1565700187-16048-9-git-send-email-ioana.ciornei@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Ioana Ciornei 2019-08-13 15:43:05 +03:00 committed by Greg Kroah-Hartman
parent e76d3d60e3
commit 38fc21369e
1 changed files with 1 additions and 2 deletions

View File

@ -1119,8 +1119,7 @@ static int port_bridge_join(struct net_device *netdev,
if (ethsw->ports[i]->bridge_dev &&
(ethsw->ports[i]->bridge_dev != upper_dev)) {
netdev_err(netdev,
"Another switch port is connected to %s\n",
ethsw->ports[i]->bridge_dev->name);
"Only one bridge supported per DPSW object!\n");
return -EINVAL;
}