From patchwork Mon Apr 28 14:01:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 29251 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B2C6520553 for ; Mon, 28 Apr 2014 14:02:56 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id rp18sf2198384iec.5 for ; Mon, 28 Apr 2014 07:02:56 -0700 (PDT) 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=xG5w60/bN1jhn3f7hTyDU3wP1D/6EGQS972J3Ao1pjE=; b=fG21kCB6+hF+UDDMB2rtBi+iDdlxUxvDBurgUzglxu6E/3J1B6cRl92OgKjoGfQgHH CURg7rDhU99z/Dw3g563EOITXafSAGnpRcyfi6q/gFZ9iFYQzmacEVWkC6Okth5jDMb8 ZmSAa/UAIOYqphbfNjCvfg/4clrjiETrI66fp2iI81nczDS/3zMpuxM6StzjRhcfPlMy QvbmcZaNMS+RmFls1gxOln7fUbzp2ZI9isvs8fe2emg+e+89qns/tA8Mjds1OSHMirWY 0sAI45dWQhxBaVq3cFrsjsDF8xqQq7al8NOcjyR9J6+jjwSddOF65CIy0rR0CTaaaa4y jA/g== X-Gm-Message-State: ALoCoQmBjF6Tbm/vfNNUeZQ0ovLUECi8wK06j1K5Oooj08y6pbifw9Z87Q2WYGrPhTA8mIehjYbL X-Received: by 10.50.43.228 with SMTP id z4mr11225549igl.0.1398693776108; Mon, 28 Apr 2014 07:02:56 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.37.164 with SMTP id r33ls2724031qgr.2.gmail; Mon, 28 Apr 2014 07:02:56 -0700 (PDT) X-Received: by 10.58.179.115 with SMTP id df19mr460930vec.41.1398693775979; Mon, 28 Apr 2014 07:02:55 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id bw7si3646070vcb.51.2014.04.28.07.02.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Apr 2014 07:02:55 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id lh4so1372055vcb.20 for ; Mon, 28 Apr 2014 07:02:55 -0700 (PDT) X-Received: by 10.58.38.166 with SMTP id h6mr23355065vek.22.1398693775873; Mon, 28 Apr 2014 07:02:55 -0700 (PDT) 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.221.72 with SMTP id ib8csp119962vcb; Mon, 28 Apr 2014 07:02:55 -0700 (PDT) X-Received: by 10.68.248.7 with SMTP id yi7mr25924337pbc.31.1398693774953; Mon, 28 Apr 2014 07:02:54 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yb4si10547203pab.103.2014.04.28.07.02.54; Mon, 28 Apr 2014 07:02:54 -0700 (PDT) Received-SPF: none (google.com: linux-usb-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756042AbaD1OCv (ORCPT + 3 others); Mon, 28 Apr 2014 10:02:51 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:47266 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752665AbaD1OB5 (ORCPT ); Mon, 28 Apr 2014 10:01:57 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s3SE1tHG013959; Mon, 28 Apr 2014 09:01:55 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s3SE1thw026850; Mon, 28 Apr 2014 09:01:55 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.174.1; Mon, 28 Apr 2014 09:01:55 -0500 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s3SE1iQn031842; Mon, 28 Apr 2014 09:01:53 -0500 From: Roger Quadros To: , , CC: , , , , Roger Quadros Subject: [PATCH v2 3/7] phy: omap-usb2: Use generic clock names "wkupclk" and "refclk" Date: Mon, 28 Apr 2014 17:01:23 +0300 Message-ID: <1398693687-13967-4-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1398693687-13967-1-git-send-email-rogerq@ti.com> References: <1398693687-13967-1-git-send-email-rogerq@ti.com> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-usb@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: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) 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);