aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/core/sdio.c
diff options
context:
space:
mode:
authorDavid Vrabel <david.vrabel@csr.com>2007-08-08 14:23:05 +0100
committerPierre Ossman <drzeus@drzeus.cx>2007-09-23 21:16:27 +0200
commit7616ee95f27a04fd5a6434e9ef4a82cec4b2807c (patch)
tree93ec2054a7919af593e2324a5bfaf866ded416d6 /drivers/mmc/core/sdio.c
parente6f918bf39773d712ab5b457bff54ade3bda0cb1 (diff)
downloadkernel_samsung_espresso10-7616ee95f27a04fd5a6434e9ef4a82cec4b2807c.zip
kernel_samsung_espresso10-7616ee95f27a04fd5a6434e9ef4a82cec4b2807c.tar.gz
kernel_samsung_espresso10-7616ee95f27a04fd5a6434e9ef4a82cec4b2807c.tar.bz2
sdio: add SDIO_FBR_BASE(f) macro
Signed-off-by: David Vrabel <david.vrabel@csr.com> Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc/core/sdio.c')
-rw-r--r--drivers/mmc/core/sdio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/core/sdio.c b/drivers/mmc/core/sdio.c
index 48c465a..58cf36e 100644
--- a/drivers/mmc/core/sdio.c
+++ b/drivers/mmc/core/sdio.c
@@ -30,7 +30,7 @@ static int sdio_read_fbr(struct sdio_func *func)
unsigned char data;
ret = mmc_io_rw_direct(func->card, 0, 0,
- func->num * 0x100 + SDIO_FBR_STD_IF, 0, &data);
+ SDIO_FBR_BASE(func->num) + SDIO_FBR_STD_IF, 0, &data);
if (ret)
goto out;
@@ -38,7 +38,7 @@ static int sdio_read_fbr(struct sdio_func *func)
if (data == 0x0f) {
ret = mmc_io_rw_direct(func->card, 0, 0,
- func->num * 0x100 + SDIO_FBR_STD_IF_EXT, 0, &data);
+ SDIO_FBR_BASE(func->num) + SDIO_FBR_STD_IF_EXT, 0, &data);
if (ret)
goto out;
}