No need to pass the all request to the transfer related funtctions.
Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
return 0;
}
-static int gb_sdio_transfer(struct gb_sdio_host *host, struct mmc_request *mrq)
+static int gb_sdio_transfer(struct gb_sdio_host *host, struct mmc_data *data)
{
- struct mmc_data *data = mrq->data;
size_t left, len;
off_t skip = 0;
int ret = 0;
goto done;
if (mrq->data) {
- ret = gb_sdio_transfer(host, host->mrq);
+ ret = gb_sdio_transfer(host, host->mrq->data);
if (ret < 0)
goto done;
}