/* Return: 0 if all goes good, else appropriate error message.  */
static int k3_of_to_priv(struct udevice *dev, struct k3_sysctrler_privdata *priv)
/* Return: 0 if all goes good, else appropriate error message.  */
static int k3_of_to_priv(struct udevice *dev, struct k3_sysctrler_privdata *priv)
{
	int ret;
	ret = mbox_get_by_name(dev, "tx", &priv->chan_tx);
	if (ret) {
		dev_err(dev, "%s: Acquiring Tx channel failed. ret = %d\n",
			__func__, ret);
		return ret;
	}
	ret = mbox_get_by_name(dev, "rx", &priv->chan_rx);
	if (ret) {
		dev_err(dev, "%s: Acquiring Rx channel failed. ret = %d\n",
			__func__, ret);
		return ret;
	}
	return 0;
}