aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/core/sd_ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc/core/sd_ops.c')
-rw-r--r--drivers/mmc/core/sd_ops.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/mmc/core/sd_ops.c b/drivers/mmc/core/sd_ops.c
index 021fed153804..274ef00b4463 100644
--- a/drivers/mmc/core/sd_ops.c
+++ b/drivers/mmc/core/sd_ops.c
@@ -11,6 +11,7 @@
11 11
12#include <linux/slab.h> 12#include <linux/slab.h>
13#include <linux/types.h> 13#include <linux/types.h>
14#include <linux/export.h>
14#include <linux/scatterlist.h> 15#include <linux/scatterlist.h>
15 16
16#include <linux/mmc/host.h> 17#include <linux/mmc/host.h>
@@ -67,7 +68,7 @@ EXPORT_SYMBOL_GPL(mmc_app_cmd);
67int mmc_wait_for_app_cmd(struct mmc_host *host, struct mmc_card *card, 68int mmc_wait_for_app_cmd(struct mmc_host *host, struct mmc_card *card,
68 struct mmc_command *cmd, int retries) 69 struct mmc_command *cmd, int retries)
69{ 70{
70 struct mmc_request mrq = {0}; 71 struct mmc_request mrq = {NULL};
71 72
72 int i, err; 73 int i, err;
73 74
@@ -244,7 +245,7 @@ int mmc_send_relative_addr(struct mmc_host *host, unsigned int *rca)
244int mmc_app_send_scr(struct mmc_card *card, u32 *scr) 245int mmc_app_send_scr(struct mmc_card *card, u32 *scr)
245{ 246{
246 int err; 247 int err;
247 struct mmc_request mrq = {0}; 248 struct mmc_request mrq = {NULL};
248 struct mmc_command cmd = {0}; 249 struct mmc_command cmd = {0};
249 struct mmc_data data = {0}; 250 struct mmc_data data = {0};
250 struct scatterlist sg; 251 struct scatterlist sg;
@@ -303,7 +304,7 @@ int mmc_app_send_scr(struct mmc_card *card, u32 *scr)
303int mmc_sd_switch(struct mmc_card *card, int mode, int group, 304int mmc_sd_switch(struct mmc_card *card, int mode, int group,
304 u8 value, u8 *resp) 305 u8 value, u8 *resp)
305{ 306{
306 struct mmc_request mrq = {0}; 307 struct mmc_request mrq = {NULL};
307 struct mmc_command cmd = {0}; 308 struct mmc_command cmd = {0};
308 struct mmc_data data = {0}; 309 struct mmc_data data = {0};
309 struct scatterlist sg; 310 struct scatterlist sg;
@@ -348,7 +349,7 @@ int mmc_sd_switch(struct mmc_card *card, int mode, int group,
348int mmc_app_sd_status(struct mmc_card *card, void *ssr) 349int mmc_app_sd_status(struct mmc_card *card, void *ssr)
349{ 350{
350 int err; 351 int err;
351 struct mmc_request mrq = {0}; 352 struct mmc_request mrq = {NULL};
352 struct mmc_command cmd = {0}; 353 struct mmc_command cmd = {0};
353 struct mmc_data data = {0}; 354 struct mmc_data data = {0};
354 struct scatterlist sg; 355 struct scatterlist sg;