blk_{read|write}_devnum() don't work with CONFIG_DM_MMC enabled.
Prevent use under these circumstances by making the function
definition depend on !CONFIG_DM_MMC
return NULL;
}
+#ifndef CONFIG_DM_MMC
/**
* get_desc() - Get the block device descriptor for the given device number
*
return found_more ? -ENOENT : -ENODEV;
}
+#endif
int blk_select_hwpart_devnum(enum if_type if_type, int devnum, int hwpart)
{
return blk_select_hwpart(dev, hwpart);
}
+#ifndef CONFIG_DM_MMC
int blk_list_part(enum if_type if_type)
{
struct blk_desc *desc;
return ret;
return blk_dwrite(desc, start, blkcnt, buffer);
}
+#endif
int blk_select_hwpart(struct udevice *dev, int hwpart)
{