aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2014-04-09 05:19:59 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2014-04-09 05:19:57 -0700
commit1a07b45b0550e23a2a6535f0ba882b00e60aebdb (patch)
treeb3209fddf7c8428c5dd38a28004d3b5541836367
parent34d514f88d890a43ae39f25bb7a5a5efd3d60e06 (diff)
parentfbd19e4f2df385a2e0c5124e10938d355bb0f2cb (diff)
Merge "mmc: core: fix variable being overwritten"
-rw-r--r--drivers/mmc/core/slot-gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/core/slot-gpio.c b/drivers/mmc/core/slot-gpio.c
index be79c62611c..804df226406 100644
--- a/drivers/mmc/core/slot-gpio.c
+++ b/drivers/mmc/core/slot-gpio.c
@@ -21,8 +21,8 @@ struct mmc_gpio {
int ro_gpio;
int cd_gpio;
char *ro_label;
- char cd_label[0];
bool status;
+ char cd_label[0]; /* Must be last entry */
};
static int mmc_gpio_get_status(struct mmc_host *host)