diff options
author | Tony Lin <tony.lin@freescale.com> | 2011-12-28 10:34:17 +0800 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2012-01-09 21:13:09 +0800 |
commit | 4578127ca141c648f8703e6d1dd7289f620c27f9 (patch) | |
tree | 398f85a576cc02868f6bd390872bb2f1982d1c11 /drivers/mmc | |
parent | c34fd758de00b7716622805694152787fc2859bc (diff) |
ENGR00170998 [MX6Q MMC]build warning
fix following build warning:
drivers/mmc/host/sdhci.c: In function 'sdhci_clk_worker':
drivers/mmc/host/sdhci.c:53: warning: unused variable 'flags'
drivers/mmc/host/sdhci.c: In function 'sdhci_resume_host':
drivers/mmc/host/sdhci.c:1751:
warning: 'ret' may be used uninitialized in this function
Signed-off-by: Tony Lin <tony.lin@freescale.com>
Diffstat (limited to 'drivers/mmc')
-rwxr-xr-x | drivers/mmc/host/sdhci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 7b8ad2706d22..0cb6a8b14802 100755 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -53,7 +53,6 @@ static void sdhci_tuning_timer(unsigned long data); static void sdhci_clk_worker(struct work_struct *work) { - unsigned long flags; struct sdhci_host *host = container_of(work, struct sdhci_host, clk_worker.work); @@ -2325,7 +2324,7 @@ int sdhci_resume_host(struct sdhci_host *host) int ret; if (host->vmmc) { - int ret = regulator_enable(host->vmmc); + ret = regulator_enable(host->vmmc); if (ret) goto out; } |