/* Register a new SDIO function with the driver model.  */
int sdio_add_func(struct sdio_func *func)
/* Register a new SDIO function with the driver model.  */
int sdio_add_func(struct sdio_func *func)
{
	int ret;
	dev_set_name(&func->dev, "%s:%d", mmc_card_id(func->card), func->num);
	ret = device_add(&func->dev);
	if (ret == 0)
		sdio_func_set_present(func);
	return ret;
}