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>
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);
int ret;
if (host->vmmc) {
- int ret = regulator_enable(host->vmmc);
+ ret = regulator_enable(host->vmmc);
if (ret)
goto out;
}