mmc: rk29_sdmmc_old: remove the "state" argument to mmc_suspend_host()
author黄涛 <huangtao@rock-chips.com>
Tue, 9 Aug 2011 06:36:03 +0000 (14:36 +0800)
committer黄涛 <huangtao@rock-chips.com>
Tue, 9 Aug 2011 06:36:03 +0000 (14:36 +0800)
drivers/mmc/host/rk29_sdmmc_old.c

index b33d69c2300b096ad81025fb4e5d0a7f5b57fc52..d2ebee3e0b2c0941f000bc3d7f3859e45c0ac62c 100755 (executable)
@@ -1494,7 +1494,11 @@ static int rk29_sdmmc_suspend(struct platform_device *pdev, pm_message_t state)
 
        dev_info(host->dev, "Enter rk29_sdmmc_suspend\n");
        if(host->mmc && !host->is_sdio && host->gpio_det != INVALID_GPIO){
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35))
+               ret = mmc_suspend_host(host->mmc);
+#else
                ret = mmc_suspend_host(host->mmc,state);
+#endif
                if(!host->enable_sd_warkup)
                        free_irq(host->gpio_irq, host);
        }