|
@@ -78,7 +78,7 @@ static const struct hc_driver ehci_spear_hc_driver = {
|
|
|
.clear_tt_buffer_complete = ehci_clear_tt_buffer_complete,
|
|
|
};
|
|
|
|
|
|
-#ifdef CONFIG_PM
|
|
|
+#ifdef CONFIG_PM_SLEEP
|
|
|
static int ehci_spear_drv_suspend(struct device *dev)
|
|
|
{
|
|
|
struct usb_hcd *hcd = dev_get_drvdata(dev);
|
|
@@ -94,7 +94,7 @@ static int ehci_spear_drv_resume(struct device *dev)
|
|
|
ehci_resume(hcd, false);
|
|
|
return 0;
|
|
|
}
|
|
|
-#endif /* CONFIG_PM */
|
|
|
+#endif /* CONFIG_PM_SLEEP */
|
|
|
|
|
|
static SIMPLE_DEV_PM_OPS(ehci_spear_pm_ops, ehci_spear_drv_suspend,
|
|
|
ehci_spear_drv_resume);
|