commit | 322bbc613e40aed78a831ec2fb67aef111dc26cb | [log] [tgz] |
---|---|---|
author | Michael Walle <michael@walle.cc> | Wed Feb 24 17:40:39 2021 +0100 |
committer | Priyanka Jain <priyanka.jain@nxp.com> | Fri Mar 05 10:25:42 2021 +0530 |
tree | 31e1767fa9851bd260ad6aa47fcb8c9df4996a66 | |
parent | 10e630507b6fa263a3e9b12f4b775c300de73299 [diff] |
net: dsa: return early if there is no master It doesn't make sense to have DSA without a master port. Error out early if there is no master port. Fixes: fc054d563bfb ("net: Introduce DSA class for Ethernet switches") Signed-off-by: Michael Walle <michael@walle.cc> Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>