X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=drivers%2Fmmc%2Fpxamci.c;h=f31e247b2cbeabf479c912ae896453db70278935;hb=f24e09754bcb4d367664ea635c0c4ccde6ec4df5;hp=b53af57074e3296b5bf994c105f37a42b3a8398a;hpb=529980c8b0b04e8a3f6606cdc156f1f81a5d68cd;p=powerpc.git diff --git a/drivers/mmc/pxamci.c b/drivers/mmc/pxamci.c index b53af57074..f31e247b2c 100644 --- a/drivers/mmc/pxamci.c +++ b/drivers/mmc/pxamci.c @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include #include #include @@ -29,7 +29,6 @@ #include #include -#include #include #include @@ -571,23 +570,23 @@ static int pxamci_remove(struct device *dev) } #ifdef CONFIG_PM -static int pxamci_suspend(struct device *dev, pm_message_t state, u32 level) +static int pxamci_suspend(struct device *dev, pm_message_t state) { struct mmc_host *mmc = dev_get_drvdata(dev); int ret = 0; - if (mmc && level == SUSPEND_DISABLE) + if (mmc) ret = mmc_suspend_host(mmc, state); return ret; } -static int pxamci_resume(struct device *dev, u32 level) +static int pxamci_resume(struct device *dev) { struct mmc_host *mmc = dev_get_drvdata(dev); int ret = 0; - if (mmc && level == RESUME_ENABLE) + if (mmc) ret = mmc_resume_host(mmc); return ret;