[patch 2.6.23] ehci build fixes on au1xxx, ppc-soc

David Brownell <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
Cleanup: references to two PM routines (and HCD entry points)
that no longer exist are swapped with their replacements.

Evidently au1xxx and ppc-soc EHCI support doesn't get compiled
with power management very much, or these build bugs would have
been patched long ago.

Signed-off-by: David Brownell <[email protected]>
---
 drivers/usb/host/ehci-au1xxx.c  |    6 ++----
 drivers/usb/host/ehci-ppc-soc.c |    6 ++----
 2 files changed, 4 insertions(+), 8 deletions(-)

--- g26.orig/drivers/usb/host/ehci-au1xxx.c	2007-10-09 21:54:05.000000000 -0700
+++ g26/drivers/usb/host/ehci-au1xxx.c	2007-10-09 22:01:09.000000000 -0700
@@ -220,10 +220,8 @@ static const struct hc_driver ehci_au1xx
 	 */
 	.hub_status_data = ehci_hub_status_data,
 	.hub_control = ehci_hub_control,
-#ifdef	CONFIG_PM
-	.hub_suspend = ehci_hub_suspend,
-	.hub_resume = ehci_hub_resume,
-#endif
+	.bus_suspend = ehci_bus_suspend,
+	.bus_resume = ehci_bus_resume,
 };
 
 /*-------------------------------------------------------------------------*/
--- g26.orig/drivers/usb/host/ehci-ppc-soc.c	2007-10-09 21:54:05.000000000 -0700
+++ g26/drivers/usb/host/ehci-ppc-soc.c	2007-10-09 22:01:21.000000000 -0700
@@ -160,10 +160,8 @@ static const struct hc_driver ehci_ppc_s
 	 */
 	.hub_status_data = ehci_hub_status_data,
 	.hub_control = ehci_hub_control,
-#ifdef	CONFIG_PM
-	.hub_suspend = ehci_hub_suspend,
-	.hub_resume = ehci_hub_resume,
-#endif
+	.bus_suspend = ehci_bus_suspend,
+	.bus_resume = ehci_bus_resume,
 };
 
 static int ehci_hcd_ppc_soc_drv_probe(struct platform_device *pdev)

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.