diff options
author | Winkler, Tomas <tomas.winkler@intel.com> | 2017-04-02 16:56:03 -0400 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-04-24 15:42:19 -0400 |
commit | 06c9ccb78e68e2e9b69e736fc0a39fb13be49b74 (patch) | |
tree | 11c6f82e92001c969de874e0259085b8add92160 /drivers/mmc/core/sd.c | |
parent | 861183f115cd80db7efebf5516f4e7a424c13abd (diff) |
mmc: core: add proper be32 annotation
Annotate big endian values correctly and make sparse happy.
In mmc_app_send_scr remove scr function parameter as it was
updating card->raw_scr anyway.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/core/sd.c')
-rw-r--r-- | drivers/mmc/core/sd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c index 89531b48ae84..d109634fbfce 100644 --- a/drivers/mmc/core/sd.c +++ b/drivers/mmc/core/sd.c | |||
@@ -225,7 +225,7 @@ static int mmc_decode_scr(struct mmc_card *card) | |||
225 | static int mmc_read_ssr(struct mmc_card *card) | 225 | static int mmc_read_ssr(struct mmc_card *card) |
226 | { | 226 | { |
227 | unsigned int au, es, et, eo; | 227 | unsigned int au, es, et, eo; |
228 | u32 *raw_ssr; | 228 | __be32 *raw_ssr; |
229 | int i; | 229 | int i; |
230 | 230 | ||
231 | if (!(card->csd.cmdclass & CCC_APP_SPEC)) { | 231 | if (!(card->csd.cmdclass & CCC_APP_SPEC)) { |
@@ -853,7 +853,7 @@ int mmc_sd_setup_card(struct mmc_host *host, struct mmc_card *card, | |||
853 | /* | 853 | /* |
854 | * Fetch SCR from card. | 854 | * Fetch SCR from card. |
855 | */ | 855 | */ |
856 | err = mmc_app_send_scr(card, card->raw_scr); | 856 | err = mmc_app_send_scr(card); |
857 | if (err) | 857 | if (err) |
858 | return err; | 858 | return err; |
859 | 859 | ||