Skip to content

Commit 4aaaf3a

Browse files
author
Ulf Hansson
committed
mmc: sdio: Drop unused in-parameter from mmc_sdio_init_card()
The "powered_resume" in-parameter to mmc_sdio_init_card() has now become redundant as all callers set it to 0. Therefore let's just drop it. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Douglas Anderson <dianders@chromium.org> Tested-by: Douglas Anderson <dianders@chromium.org>
1 parent 3c30e73 commit 4aaaf3a

1 file changed

Lines changed: 9 additions & 11 deletions

File tree

‎drivers/mmc/core/sdio.c‎

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ static void mmc_sdio_resend_if_cond(struct mmc_host *host,
559559
* we're trying to reinitialise.
560560
*/
561561
static int mmc_sdio_init_card(struct mmc_host *host, u32 ocr,
562-
struct mmc_card *oldcard, int powered_resume)
562+
struct mmc_card *oldcard)
563563
{
564564
struct mmc_card *card;
565565
int err;
@@ -582,11 +582,9 @@ static int mmc_sdio_init_card(struct mmc_host *host, u32 ocr,
582582
/*
583583
* Inform the card of the voltage
584584
*/
585-
if (!powered_resume) {
586-
err = mmc_send_io_op_cond(host, ocr, &rocr);
587-
if (err)
588-
goto err;
589-
}
585+
err = mmc_send_io_op_cond(host, ocr, &rocr);
586+
if (err)
587+
goto err;
590588

591589
/*
592590
* For SPI, enable CRC as appropriate.
@@ -645,7 +643,7 @@ static int mmc_sdio_init_card(struct mmc_host *host, u32 ocr,
645643
* try to init uhs card. sdio_read_cccr will take over this task
646644
* to make sure which speed mode should work.
647645
*/
648-
if (!powered_resume && (rocr & ocr & R4_18V_PRESENT)) {
646+
if (rocr & ocr & R4_18V_PRESENT) {
649647
err = mmc_set_uhs_voltage(host, ocr_card);
650648
if (err == -EAGAIN) {
651649
mmc_sdio_resend_if_cond(host, card);
@@ -659,7 +657,7 @@ static int mmc_sdio_init_card(struct mmc_host *host, u32 ocr,
659657
/*
660658
* For native busses: set card RCA and quit open drain mode.
661659
*/
662-
if (!powered_resume && !mmc_host_is_spi(host)) {
660+
if (!mmc_host_is_spi(host)) {
663661
err = mmc_send_relative_addr(host, &card->rca);
664662
if (err)
665663
goto remove;
@@ -687,7 +685,7 @@ static int mmc_sdio_init_card(struct mmc_host *host, u32 ocr,
687685
/*
688686
* Select card, as all following commands rely on that.
689687
*/
690-
if (!powered_resume && !mmc_host_is_spi(host)) {
688+
if (!mmc_host_is_spi(host)) {
691689
err = mmc_select_card(card);
692690
if (err)
693691
goto remove;
@@ -845,7 +843,7 @@ static int mmc_sdio_reinit_card(struct mmc_host *host)
845843
if (ret)
846844
return ret;
847845

848-
return mmc_sdio_init_card(host, host->card->ocr, host->card, 0);
846+
return mmc_sdio_init_card(host, host->card->ocr, host->card);
849847
}
850848

851849
/*
@@ -1113,7 +1111,7 @@ int mmc_attach_sdio(struct mmc_host *host)
11131111
/*
11141112
* Detect and init the card.
11151113
*/
1116-
err = mmc_sdio_init_card(host, rocr, NULL, 0);
1114+
err = mmc_sdio_init_card(host, rocr, NULL);
11171115
if (err)
11181116
goto err;
11191117

0 commit comments

Comments
 (0)