From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jingoo Han Subject: Re: [PATCH 2/4] usb: ehci-exynos: Use struct device instead of platform_device Date: Mon, 28 Apr 2014 19:30:34 +0900 Message-ID: <001901cf62cc$e32a3bc0$a97eb340$%han@samsung.com> References: <1398677132-30600-1-git-send-email-gautam.vivek@samsung.com> <1398677132-30600-3-git-send-email-gautam.vivek@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-reply-to: <1398677132-30600-3-git-send-email-gautam.vivek@samsung.com> Content-language: ko Sender: linux-kernel-owner@vger.kernel.org To: 'Vivek Gautam' , linux-usb@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, gregkh@linuxfoundation.org, balbi@ti.com, kgene.kim@samsung.com, k.debski@samsung.com, 'Alan Stern' , 'Jingoo Han' List-Id: linux-samsung-soc@vger.kernel.org On Monday, April 28, 2014 6:26 PM, Vivek Gautam wrote: > > Change to use struct device instead of struct platform_device > for some static functions. > > Signed-off-by: Vivek Gautam > Cc: Jingoo Han Acked-by: Jingoo Han Best regards, Jingoo Han > Cc: Alan Stern > --- > 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