/* Mask off any voltages we don't support and select the lowest voltage  */
u32 mmc_select_voltage(struct mmc_host *host, u32 ocr)
/* Mask off any voltages we don't support and select the lowest voltage  */
u32 mmc_select_voltage(struct mmc_host *host, u32 ocr)
{
	int bit;
	ocr &= host->ocr_avail;
	bit = ffs(ocr);
	if (bit) {
		bit -= 1;
		ocr &= 3 << bit;
		host->ios.vdd = bit;
		mmc_set_ios(host);
	} else {
		pr_warning("%s: host doesn't support card's voltages\n",
				mmc_hostname(host));
		ocr = 0;
	}
	return ocr;
}