1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-01-28 09:11:07 +02:00

jz4740-mmc: set correct drvdata

This commit is contained in:
Lars-Peter Clausen 2009-11-29 04:17:52 +01:00
parent c053cdb48a
commit 0cc0cfdf81

View File

@ -490,7 +490,6 @@ static void jz4740_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
gpio_set_value(host->pdata->gpio_power, 0);
host->cmdat |= JZ_MMC_CMDAT_INIT;
clk_enable(host->clk);
printk("POWER UP\n");
break;
case MMC_POWER_ON:
break;
@ -498,7 +497,6 @@ static void jz4740_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
if (gpio_is_valid(host->pdata->gpio_power))
gpio_set_value(host->pdata->gpio_power, 1);
clk_disable(host->clk);
printk("POWER DOWN\n");
break;
}
@ -744,7 +742,7 @@ static int __devinit jz4740_mmc_probe(struct platform_device* pdev)
jz4740_mmc_clock_disable(host);
setup_timer(&host->timeout_timer, jz4740_mmc_timeout, (unsigned long)host);
platform_set_drvdata(pdev, mmc);
platform_set_drvdata(pdev, host);
ret = mmc_add_host(mmc);
if (ret) {