diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2016-11-08 09:27:27 -0500 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2016-11-29 03:05:23 -0500 |
commit | 89e57aedda337a121eca5f2b0adfecbc6ab39b3d (patch) | |
tree | a9ae27a32aaca8b481fe2a6b49b41edd8694472b /drivers/mmc/core/mmc_ops.c | |
parent | 437590a123b6617a52e0b136cd25fe3616e4d50f (diff) |
mmc: core: Remove redundant __mmc_send_status()
There are only one users left which calls __mmc_send_status(). Moreover,
the ignore_crc parameter isn't being used, so let's just remove these
redundant parts.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Diffstat (limited to 'drivers/mmc/core/mmc_ops.c')
-rw-r--r-- | drivers/mmc/core/mmc_ops.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c index 4773c562312d..0515748ac528 100644 --- a/drivers/mmc/core/mmc_ops.c +++ b/drivers/mmc/core/mmc_ops.c | |||
@@ -54,8 +54,7 @@ static const u8 tuning_blk_pattern_8bit[] = { | |||
54 | 0xff, 0x77, 0x77, 0xff, 0x77, 0xbb, 0xdd, 0xee, | 54 | 0xff, 0x77, 0x77, 0xff, 0x77, 0xbb, 0xdd, 0xee, |
55 | }; | 55 | }; |
56 | 56 | ||
57 | static inline int __mmc_send_status(struct mmc_card *card, u32 *status, | 57 | int mmc_send_status(struct mmc_card *card, u32 *status) |
58 | bool ignore_crc) | ||
59 | { | 58 | { |
60 | int err; | 59 | int err; |
61 | struct mmc_command cmd = {0}; | 60 | struct mmc_command cmd = {0}; |
@@ -67,8 +66,6 @@ static inline int __mmc_send_status(struct mmc_card *card, u32 *status, | |||
67 | if (!mmc_host_is_spi(card->host)) | 66 | if (!mmc_host_is_spi(card->host)) |
68 | cmd.arg = card->rca << 16; | 67 | cmd.arg = card->rca << 16; |
69 | cmd.flags = MMC_RSP_SPI_R2 | MMC_RSP_R1 | MMC_CMD_AC; | 68 | cmd.flags = MMC_RSP_SPI_R2 | MMC_RSP_R1 | MMC_CMD_AC; |
70 | if (ignore_crc) | ||
71 | cmd.flags &= ~MMC_RSP_CRC; | ||
72 | 69 | ||
73 | err = mmc_wait_for_cmd(card->host, &cmd, MMC_CMD_RETRIES); | 70 | err = mmc_wait_for_cmd(card->host, &cmd, MMC_CMD_RETRIES); |
74 | if (err) | 71 | if (err) |
@@ -83,11 +80,6 @@ static inline int __mmc_send_status(struct mmc_card *card, u32 *status, | |||
83 | return 0; | 80 | return 0; |
84 | } | 81 | } |
85 | 82 | ||
86 | int mmc_send_status(struct mmc_card *card, u32 *status) | ||
87 | { | ||
88 | return __mmc_send_status(card, status, false); | ||
89 | } | ||
90 | |||
91 | static int _mmc_select_card(struct mmc_host *host, struct mmc_card *card) | 83 | static int _mmc_select_card(struct mmc_host *host, struct mmc_card *card) |
92 | { | 84 | { |
93 | struct mmc_command cmd = {0}; | 85 | struct mmc_command cmd = {0}; |