From patchwork Fri Mar 7 13:09:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 25882 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f200.google.com (mail-ob0-f200.google.com [209.85.214.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 25570203C3 for ; Fri, 7 Mar 2014 13:10:06 +0000 (UTC) Received: by mail-ob0-f200.google.com with SMTP id gq1sf15197202obb.3 for ; Fri, 07 Mar 2014 05:10:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=mxsZ4Curor+QKL8RbuYUYuZRyCSQ4d02XHPvxx481Rg=; b=Wo0mvVKmDWDxah27qlq5lm1nxlRDHvTnIQjncnR5qtjSnHz+9J+KcEI4vsQ77hOCbu XVxdtN2FmwRIP7ThNx9FqZg7hf38Wmjs7TTH5Em+Pj68rehaRl9VtL/w6LUX5bC5TJ3g bergOdoLLZn2+sGna0SHiP5n1/qnjkOGp+LcvhDf1mxIIRSpo6VxD5DCCunxCftwNxxt ld2tmuXM0DJsJiLFXHEPzCGb3Yi91coD6Vh+1OzTYgfCSLwakRS3l3J4cGEDAtvM5uzJ HqWPmjVvW0nWtgPffCsdnXbrCu/xHteXEXmcfVp4jdGcdKImMAkUebHM0whyZxLiG4kJ EQbA== X-Gm-Message-State: ALoCoQljSTrEO8pa0vDF+jKjrHXuioWxDPjSf5NLOzY/vO/exkbmEtCsEoDeaILYLDxckMYfknP4 X-Received: by 10.50.87.65 with SMTP id v1mr1252590igz.0.1394197805665; Fri, 07 Mar 2014 05:10:05 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.23.175 with SMTP id 44ls1206626qgp.12.gmail; Fri, 07 Mar 2014 05:10:05 -0800 (PST) X-Received: by 10.52.189.33 with SMTP id gf1mr12303310vdc.26.1394197805499; Fri, 07 Mar 2014 05:10:05 -0800 (PST) Received: from mail-ve0-f179.google.com (mail-ve0-f179.google.com [209.85.128.179]) by mx.google.com with ESMTPS id fi2si2767338vdb.23.2014.03.07.05.10.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Mar 2014 05:10:05 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.179; Received: by mail-ve0-f179.google.com with SMTP id db12so4131152veb.38 for ; Fri, 07 Mar 2014 05:10:05 -0800 (PST) X-Received: by 10.58.95.161 with SMTP id dl1mr10268122veb.21.1394197805378; Fri, 07 Mar 2014 05:10:05 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp113633vck; Fri, 7 Mar 2014 05:10:04 -0800 (PST) X-Received: by 10.66.176.143 with SMTP id ci15mr21475880pac.35.1394197804377; Fri, 07 Mar 2014 05:10:04 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ub8si8299307pac.68.2014.03.07.05.10.03; Fri, 07 Mar 2014 05:10:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753411AbaCGNJx (ORCPT + 26 others); Fri, 7 Mar 2014 08:09:53 -0500 Received: from bear.ext.ti.com ([192.94.94.41]:55864 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753085AbaCGNJu (ORCPT ); Fri, 7 Mar 2014 08:09:50 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s27D9TIj006712; Fri, 7 Mar 2014 07:09:29 -0600 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s27D9TJu005445; Fri, 7 Mar 2014 07:09:29 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Fri, 7 Mar 2014 07:09:29 -0600 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s27D9Eeq003003; Fri, 7 Mar 2014 07:09:27 -0600 From: Roger Quadros To: , CC: , , , , , , , Subject: [PATCH 4/8] phy: omap-usb2: Use generic clock names "wkupclk" and "refclk" Date: Fri, 7 Mar 2014 15:09:07 +0200 Message-ID: <1394197751-28984-5-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1394197751-28984-1-git-send-email-rogerq@ti.com> References: <1394197751-28984-1-git-send-email-rogerq@ti.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: rogerq@ti.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , As clocks might be named differently on multiple platforms, use a generic name in the driver and allow device tree node to specify the platform specific clock name. Signed-off-by: Roger Quadros --- drivers/phy/phy-omap-usb2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/phy/phy-omap-usb2.c b/drivers/phy/phy-omap-usb2.c index a2205a8..fb5e515 100644 --- a/drivers/phy/phy-omap-usb2.c +++ b/drivers/phy/phy-omap-usb2.c @@ -275,16 +275,16 @@ static int omap_usb2_probe(struct platform_device *pdev) if (IS_ERR(phy_provider)) return PTR_ERR(phy_provider); - phy->wkupclk = devm_clk_get(phy->dev, "usb_phy_cm_clk32k"); + phy->wkupclk = devm_clk_get(phy->dev, "wkupclk"); if (IS_ERR(phy->wkupclk)) { - dev_err(&pdev->dev, "unable to get usb_phy_cm_clk32k\n"); + dev_err(&pdev->dev, "unable to get wkupclk\n"); return PTR_ERR(phy->wkupclk); } clk_prepare(phy->wkupclk); - phy->optclk = devm_clk_get(phy->dev, "usb_otg_ss_refclk960m"); + phy->optclk = devm_clk_get(phy->dev, "refclk"); if (IS_ERR(phy->optclk)) - dev_vdbg(&pdev->dev, "unable to get refclk960m\n"); + dev_dbg(&pdev->dev, "unable to get refclk\n"); else clk_prepare(phy->optclk);