sdio: add SDIO_FBR_BASE(f) macro

Signed-off-by: David Vrabel <david.vrabel@csr.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
This commit is contained in:
David Vrabel
2007-08-08 14:23:05 +01:00
committed by Pierre Ossman
parent e6f918bf39
commit 7616ee95f2
3 changed files with 5 additions and 3 deletions

View File

@@ -145,7 +145,7 @@ static int sdio_read_cis(struct mmc_card *card, struct sdio_func *func)
fn = 0;
ret = mmc_io_rw_direct(card, 0, 0,
fn * 0x100 + SDIO_FBR_CIS + i, 0, &x);
SDIO_FBR_BASE(fn) + SDIO_FBR_CIS + i, 0, &x);
if (ret)
return ret;
ptr |= x << (i * 8);