From patchwork Mon May 5 05:04:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 4111751 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2A5A79F23C for ; Mon, 5 May 2014 05:05:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5348720396 for ; Mon, 5 May 2014 05:05:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 81E5A20384 for ; Mon, 5 May 2014 05:05:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754572AbaEEFE6 (ORCPT ); Mon, 5 May 2014 01:04:58 -0400 Received: from mail-pd0-f169.google.com ([209.85.192.169]:55807 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751843AbaEEFE4 (ORCPT ); Mon, 5 May 2014 01:04:56 -0400 Received: by mail-pd0-f169.google.com with SMTP id z10so6433956pdj.28 for ; Sun, 04 May 2014 22:04:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=VLmr7vQ7o1UUyXo0Os2utfdu7drGAfcbTrhtyg8MV/s=; b=K05qkPXs9bm8HabehSqxfTGQmAH0Gx0LSncelrCEEFNdJvDweRgtyosOVXBBXZ4Ae+ /8BlwcZkzTbMxhYmLAF/IIFkynGyZuPKH6jjKUOu6lwKiPAl8iQxPcW1pxEb2G1Cv6Cp UaO1YH+FX0VNzqLLmzKO1xAV9aUjwNBsPURqsEOXW1pD+4FfoVthSxdwBKPebxe2hUq8 HIXxvjly2Pomgh5wHP0kB+bNqqU/QKvHN+mmKRoymSdtumscj09EEtXub6SPR7yX0MV/ YXfy0CdxLYvW+fwt1eppNfyQwmkHOi74BZ5W7Z4qY3q1cJXWd2i9LUdZhgegGr+Glr7A fQWg== X-Received: by 10.66.246.229 with SMTP id xz5mr66915613pac.119.1399266295941; Sun, 04 May 2014 22:04:55 -0700 (PDT) Received: from vivek-linuxpc.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id g6sm61373335pat.2.2014.05.04.22.04.35 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 04 May 2014 22:04:55 -0700 (PDT) From: Vivek Gautam To: 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, t.figa@samsung.com, k.debski@samsung.com, jg1.han@samsung.com, Vivek Gautam Subject: [PATCH v4 2/4] usb: ehci-exynos: Use struct device instead of platform_device Date: Mon, 5 May 2014 10:34:25 +0530 Message-Id: <1399266265-31839-1-git-send-email-gautam.vivek@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1399034855-9686-3-git-send-email-gautam.vivek@samsung.com> References: <1399034855-9686-3-git-send-email-gautam.vivek@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Change to use struct device instead of struct platform_device for some static functions. Signed-off-by: Vivek Gautam Acked-by: Alan Stern Acked-by: Jingoo Han Acked-by: Kukjin Kim --- Changes since v1: - 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));