X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=drivers%2Fmmc%2Fpxamci.c;h=ef350908478c75217ff2474dca8824cdb9cd99e9;hb=23e735bc7b0e1d614656881794257b4224efda3a;hp=f97b472085cbf2c39f3eb99b0b4fd38460aa2c8d;hpb=aad61439e6a00bdb72cb649e11f6e166590c5f66;p=linux-2.6-omap-h63xx.git diff --git a/drivers/mmc/pxamci.c b/drivers/mmc/pxamci.c index f97b472085c..ef350908478 100644 --- a/drivers/mmc/pxamci.c +++ b/drivers/mmc/pxamci.c @@ -16,7 +16,6 @@ * 1 and 3 byte data transfers not supported * max block length up to 1023 */ -#include #include #include #include @@ -119,7 +118,7 @@ static void pxamci_setup_data(struct pxamci_host *host, struct mmc_data *data) nob = 0xffff; writel(nob, host->base + MMC_NOB); - writel(1 << data->blksz_bits, host->base + MMC_BLKLEN); + writel(data->blksz, host->base + MMC_BLKLEN); clks = (unsigned long long)data->timeout_ns * CLOCKRATE; do_div(clks, 1000000000UL); @@ -283,7 +282,7 @@ static int pxamci_data_done(struct pxamci_host *host, unsigned int stat) * data blocks as being in error. */ if (data->error == MMC_ERR_NONE) - data->bytes_xfered = data->blocks << data->blksz_bits; + data->bytes_xfered = data->blocks * data->blksz; else data->bytes_xfered = 0;