/* Typically this will just store a device pointer. In case it was not probed, we will attempt to do so. dev may be NULL to unset the active device.  */
void eth_set_dev(struct udevice *dev)
/* Typically this will just store a device pointer. In case it was not probed, we will attempt to do so. dev may be NULL to unset the active device.  */
void eth_set_dev(struct udevice *dev)
{
	if (dev && !device_active(dev)) {
		eth_errno = device_probe(dev);
		if (eth_errno)
			dev = NULL;
	}
	eth_get_uclass_priv()->current = dev;
}