diff mbox

[rft/rfc/patch-v2.6.29-rc5+,08/23] usb: host: ehci: reorganize structures

Message ID 1235415171-17376-9-git-send-email-me@felipebalbi.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Felipe Balbi Feb. 23, 2009, 6:52 p.m. UTC
Move the platform_driver closer to its functions.
No functional changes.

Signed-off-by: Felipe Balbi <me@felipebalbi.com>
---
 drivers/usb/host/ehci-omap.c |   23 ++++++++++++-----------
 1 files changed, 12 insertions(+), 11 deletions(-)
diff mbox

Patch

diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c
index 1b387cc..e66f5f9 100644
--- a/drivers/usb/host/ehci-omap.c
+++ b/drivers/usb/host/ehci-omap.c
@@ -511,6 +511,18 @@  static int ehci_hcd_omap_drv_remove(struct platform_device *pdev)
 	return 0;
 }
 
+static struct platform_driver ehci_hcd_omap_driver = {
+	.probe			= ehci_hcd_omap_drv_probe,
+	.remove			= ehci_hcd_omap_drv_remove,
+	.shutdown		= usb_hcd_platform_shutdown,
+	/*.suspend		= ehci_hcd_omap_drv_suspend, */
+	/*.resume		= ehci_hcd_omap_drv_resume, */
+	.driver = {
+		.name		= "ehci-omap",
+		.bus		= &platform_bus_type
+	}
+};
+
 static const struct hc_driver ehci_omap_hc_driver = {
 	.description = hcd_name,
 	.product_desc		= "OMAP-EHCI Host Controller",
@@ -554,14 +566,3 @@  static const struct hc_driver ehci_omap_hc_driver = {
 
 MODULE_ALIAS("platform:omap-ehci");
 
-static struct platform_driver ehci_hcd_omap_driver = {
-	.probe			= ehci_hcd_omap_drv_probe,
-	.remove			= ehci_hcd_omap_drv_remove,
-	.shutdown		= usb_hcd_platform_shutdown,
-	/*.suspend		= ehci_hcd_omap_drv_suspend, */
-	/*.resume		= ehci_hcd_omap_drv_resume, */
-	.driver = {
-		.name		= "ehci-omap",
-		.bus		= &platform_bus_type
-	}
-};