/* Empty BM pool and stop its activity before the OS is started  */
static int mvpp2_remove(struct udevice *dev)
/* Empty BM pool and stop its activity before the OS is started  */
static int mvpp2_remove(struct udevice *dev)
{
	struct mvpp2_port *port = dev_get_priv(dev);
	struct mvpp2 *priv = port->priv;
	int i;
	priv->num_ports--;
	if (priv->num_ports)
		return 0;
	for (i = 0; i < MVPP2_BM_POOLS_NUM; i++)
		mvpp2_bm_pool_destroy(dev, priv, &priv->bm_pools[i]);
	return 0;
}