Skip to content

Commit

Permalink
usb: ehci-exynos: Use struct device instead of platform_device
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vivek Gautam authored and Greg Kroah-Hartman committed May 27, 2014
1 parent 54969ed commit 91a9677
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/usb/host/ehci-exynos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit 91a9677

Please sign in to comment.