usb: ehci-exynos: Use struct device instead of platform_device
authorVivek Gautam <gautam.vivek@samsung.com>
Mon, 5 May 2014 05:04:25 +0000 (10:34 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 21:49:35 +0000 (14:49 -0700)
Change to use struct device instead of struct platform_device
for some static functions.

Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-exynos.c

index 7f425acd9be5e18d88833aab4775b11aa7976ff4..4d763dc91f70f3d2a195125e7006f3106ad12cc1 100644 (file)
@@ -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));