|
@@ -21,7 +21,6 @@
|
|
#include <linux/export.h>
|
|
#include <linux/export.h>
|
|
#include <linux/leds.h>
|
|
#include <linux/leds.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/slab.h>
|
|
-#include <linux/suspend.h>
|
|
|
|
|
|
|
|
#include <linux/mmc/host.h>
|
|
#include <linux/mmc/host.h>
|
|
#include <linux/mmc/card.h>
|
|
#include <linux/mmc/card.h>
|
|
@@ -349,9 +348,6 @@ struct mmc_host *mmc_alloc_host(int extra, struct device *dev)
|
|
spin_lock_init(&host->lock);
|
|
spin_lock_init(&host->lock);
|
|
init_waitqueue_head(&host->wq);
|
|
init_waitqueue_head(&host->wq);
|
|
INIT_DELAYED_WORK(&host->detect, mmc_rescan);
|
|
INIT_DELAYED_WORK(&host->detect, mmc_rescan);
|
|
-#ifdef CONFIG_PM
|
|
|
|
- host->pm_notify.notifier_call = mmc_pm_notify;
|
|
|
|
-#endif
|
|
|
|
setup_timer(&host->retune_timer, mmc_retune_timer, (unsigned long)host);
|
|
setup_timer(&host->retune_timer, mmc_retune_timer, (unsigned long)host);
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -396,7 +392,7 @@ int mmc_add_host(struct mmc_host *host)
|
|
#endif
|
|
#endif
|
|
|
|
|
|
mmc_start_host(host);
|
|
mmc_start_host(host);
|
|
- register_pm_notifier(&host->pm_notify);
|
|
|
|
|
|
+ mmc_register_pm_notifier(host);
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
@@ -413,7 +409,7 @@ EXPORT_SYMBOL(mmc_add_host);
|
|
*/
|
|
*/
|
|
void mmc_remove_host(struct mmc_host *host)
|
|
void mmc_remove_host(struct mmc_host *host)
|
|
{
|
|
{
|
|
- unregister_pm_notifier(&host->pm_notify);
|
|
|
|
|
|
+ mmc_unregister_pm_notifier(host);
|
|
mmc_stop_host(host);
|
|
mmc_stop_host(host);
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_FS
|
|
#ifdef CONFIG_DEBUG_FS
|