mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-30 00:11:05 +02:00
jz4740-mmc: set correct drvdata
This commit is contained in:
parent
c053cdb48a
commit
0cc0cfdf81
@ -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);
|
gpio_set_value(host->pdata->gpio_power, 0);
|
||||||
host->cmdat |= JZ_MMC_CMDAT_INIT;
|
host->cmdat |= JZ_MMC_CMDAT_INIT;
|
||||||
clk_enable(host->clk);
|
clk_enable(host->clk);
|
||||||
printk("POWER UP\n");
|
|
||||||
break;
|
break;
|
||||||
case MMC_POWER_ON:
|
case MMC_POWER_ON:
|
||||||
break;
|
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))
|
if (gpio_is_valid(host->pdata->gpio_power))
|
||||||
gpio_set_value(host->pdata->gpio_power, 1);
|
gpio_set_value(host->pdata->gpio_power, 1);
|
||||||
clk_disable(host->clk);
|
clk_disable(host->clk);
|
||||||
printk("POWER DOWN\n");
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -744,7 +742,7 @@ static int __devinit jz4740_mmc_probe(struct platform_device* pdev)
|
|||||||
jz4740_mmc_clock_disable(host);
|
jz4740_mmc_clock_disable(host);
|
||||||
setup_timer(&host->timeout_timer, jz4740_mmc_timeout, (unsigned long)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);
|
ret = mmc_add_host(mmc);
|
||||||
|
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user