/* Writes a 32 bit integer to the address space of a given SDIO function. @err_ret will contain the status of the actual transfer.  */
void sdio_writel(struct sdio_func *func, u32 b, unsigned int addr, int *err_ret)
/* Writes a 32 bit integer to the address space of a given SDIO function. @err_ret will contain the status of the actual transfer.  */
void sdio_writel(struct sdio_func *func, u32 b, unsigned int addr, int *err_ret)
{
	int ret;
	*(__le32 *)func->tmpbuf = cpu_to_le32(b);
	ret = sdio_memcpy_toio(func, addr, func->tmpbuf, 4);
	if (err_ret)
		*err_ret = ret;
}