diff options
author | Vivek Gautam <gautam.vivek@samsung.com> | 2014-05-05 01:04:25 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-27 17:49:35 -0400 |
commit | 91a9677a4ae611eb468b02c531ee3d673988d648 (patch) | |
tree | 0791d8c88a6df8cbbac4dad5e252e5a2344382be /drivers/usb/host/ehci-exynos.c | |
parent | 54969ed6c4d0b9eb7fa68a909be231f383f0c406 (diff) |
usb: ehci-exynos: Use struct device instead of platform_device
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>
Diffstat (limited to 'drivers/usb/host/ehci-exynos.c')
-rw-r--r-- | drivers/usb/host/ehci-exynos.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c index 7f425acd9be5..4d763dc91f70 100644 --- a/drivers/usb/host/ehci-exynos.c +++ b/drivers/usb/host/ehci-exynos.c | |||
@@ -50,9 +50,8 @@ struct exynos_ehci_hcd { | |||
50 | 50 | ||
51 | #define to_exynos_ehci(hcd) (struct exynos_ehci_hcd *)(hcd_to_ehci(hcd)->priv) | 51 | #define to_exynos_ehci(hcd) (struct exynos_ehci_hcd *)(hcd_to_ehci(hcd)->priv) |
52 | 52 | ||
53 | static void exynos_setup_vbus_gpio(struct platform_device *pdev) | 53 | static void exynos_setup_vbus_gpio(struct device *dev) |
54 | { | 54 | { |
55 | struct device *dev = &pdev->dev; | ||
56 | int err; | 55 | int err; |
57 | int gpio; | 56 | int gpio; |
58 | 57 | ||
@@ -88,7 +87,7 @@ static int exynos_ehci_probe(struct platform_device *pdev) | |||
88 | if (err) | 87 | if (err) |
89 | return err; | 88 | return err; |
90 | 89 | ||
91 | exynos_setup_vbus_gpio(pdev); | 90 | exynos_setup_vbus_gpio(&pdev->dev); |
92 | 91 | ||
93 | hcd = usb_create_hcd(&exynos_ehci_hc_driver, | 92 | hcd = usb_create_hcd(&exynos_ehci_hc_driver, |
94 | &pdev->dev, dev_name(&pdev->dev)); | 93 | &pdev->dev, dev_name(&pdev->dev)); |