Thread (13 messages) 13 messages, 4 authors, 2014-05-09
STALE4425d REVIEWED: 6 (5M)
Revisions (4)
  1. v1 [diff vs current]
  2. v3 [diff vs current]
  3. v5 current
  4. v5 [diff vs current]

[PATCH v3 2/4] usb: ehci-exynos: Use struct device instead of platform_device

From: Vivek Gautam <hidden>
Date: 2014-05-02 12:48:06
Also in: linux-devicetree, linux-samsung-soc, lkml
Subsystem: the rest, usb ehci driver, usb subsystem · Maintainers: Linus Torvalds, Alan Stern, Greg Kroah-Hartman

Change to use struct device instead of struct platform_device
for some static functions.

Signed-off-by: Vivek Gautam <redacted>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Jingoo Han <redacted>
---

Changes from v2:
 - none

 drivers/usb/host/ehci-exynos.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c
index 7f425ac..4d763dc 100644
--- a/drivers/usb/host/ehci-exynos.c
+++ b/drivers/usb/host/ehci-exynos.c
@@ -50,9 +50,8 @@ struct exynos_ehci_hcd {
 
 #define to_exynos_ehci(hcd) (struct exynos_ehci_hcd *)(hcd_to_ehci(hcd)->priv)
 
-static void exynos_setup_vbus_gpio(struct platform_device *pdev)
+static void exynos_setup_vbus_gpio(struct device *dev)
 {
-	struct device *dev = &pdev->dev;
 	int err;
 	int gpio;
 
@@ -88,7 +87,7 @@ static int exynos_ehci_probe(struct platform_device *pdev)
 	if (err)
 		return err;
 
-	exynos_setup_vbus_gpio(pdev);
+	exynos_setup_vbus_gpio(&pdev->dev);
 
 	hcd = usb_create_hcd(&exynos_ehci_hc_driver,
 			     &pdev->dev, dev_name(&pdev->dev));
-- 
1.7.10.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help