|
@@ -2222,6 +2222,7 @@ static int mlxsw_sp_port_create(struct mlxsw_sp *mlxsw_sp, u8 local_port,
|
|
dev = alloc_etherdev(sizeof(struct mlxsw_sp_port));
|
|
dev = alloc_etherdev(sizeof(struct mlxsw_sp_port));
|
|
if (!dev)
|
|
if (!dev)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
|
|
+ SET_NETDEV_DEV(dev, mlxsw_sp->bus_info->dev);
|
|
mlxsw_sp_port = netdev_priv(dev);
|
|
mlxsw_sp_port = netdev_priv(dev);
|
|
mlxsw_sp_port->dev = dev;
|
|
mlxsw_sp_port->dev = dev;
|
|
mlxsw_sp_port->mlxsw_sp = mlxsw_sp;
|
|
mlxsw_sp_port->mlxsw_sp = mlxsw_sp;
|