Commit 77be600e authored by Andrew Morton's avatar Andrew Morton Committed by James Toy

simplify sdio_disable_cd() a bit

Cc: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
Cc: Ian Molton <ian@mnementh.co.uk>
Cc: Matt Fleming <matt@console-pimps.org>
Cc: Ohad Ben-Cohen <ohad@wizery.com>
Cc: Philip Langdale <philipl@overt.org>
Cc: Pierre Ossman <pierre@ossman.eu>
Cc: David Vrabel <david.vrabel@csr.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent d75c4fdd
......@@ -184,11 +184,7 @@ static int sdio_disable_cd(struct mmc_card *card)
ctrl |= SDIO_BUS_CD_DISABLE;
ret = mmc_io_rw_direct(card, 1, 0, SDIO_CCCR_IF, ctrl, NULL);
if (ret)
return ret;
return 0;
return mmc_io_rw_direct(card, 1, 0, SDIO_CCCR_IF, ctrl, NULL);
}
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment