Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2592415ybg; Thu, 24 Oct 2019 12:03:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzs2reZJxKrgy9GRtmfbycCk39GMuNqzSLFP+T/zjlVoDq2mpYPbbZVUw7AGAhqv31MSb5M X-Received: by 2002:a05:6402:304c:: with SMTP id bu12mr28337189edb.230.1571943826529; Thu, 24 Oct 2019 12:03:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571943826; cv=pass; d=google.com; s=arc-20160816; b=EIaC21axnMBir+lKnMNZqHmLf+IPFwKPfq2pt9dB4Jq4tsqdZ0G+rz/lCTZD6FcMyB dyA4rCO/9AyvCtVelfFzsAvMuI5f6pqsMco6I6qJbyZf5IsRlqzoDZmNAKalcvxQlRID t5MvIJVlfiE85oWmUznmJy/eSg6tfyhDzXxDWoGu4jcsPenjsml7q1iv1R3TCANBNzAH +Q+X70GnqOMXpMcvsahGnWA6ErHxbRBKTksmk7+QbyH5z5WN4hGUieqEnRZbM+/J2fHk 3YDCPkAamSONeZPK4hjOZTtzLmcciLFhCx4SVRS8hKAQtAoPvr0T9LL/GVu+IKOdgiHz jAPw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=pA0risZRY0AGIGABB1yT2ErBUbUGKsHltOmhVQW9IH4=; b=QO4Qa7hVA1s6EoX4872MNjgNQ67rPDHukN1C4agpKzzJVK/CB/hMpkZbAFL2HOWZJ+ JCJc9chO+0VzhIvORI5Jjgp6vT757hKM7Iwer613ar1QaBA1R6T5IEkSOhlHhl+bOVcy K9iKaRpBAMfvkxQwSTzSiVGjW+Z8TbVUDlsnZY9kmuTDeU72CnWBIvFS76dZbwW5kVv+ FlWQOUH9Rce3AzTj09jW8XamXYHI2Y7OsmV2OgEZYf523dtIZr5Vf7T9eYJerYEUckuX K87CrGkDf/OZlU41mn5/bTjmyPzOzGH22UfpOMEteR7QlMmZvbij3LlS9m6e+I51PgxQ vAlg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=L85p98Ec; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f8si4986981ede.120.2019.10.24.12.03.21; Thu, 24 Oct 2019 12:03:46 -0700 (PDT) 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; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=L85p98Ec; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437248AbfJXC7q (ORCPT + 99 others); Wed, 23 Oct 2019 22:59:46 -0400 Received: from mail-eopbgr40055.outbound.protection.outlook.com ([40.107.4.55]:56654 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2390589AbfJXC7p (ORCPT ); Wed, 23 Oct 2019 22:59:45 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CIIS+45xc81ZrTXmETICTYJf1NhhJAy6KVHp+DOAu8Vm2ND+hCCqJwH+sKZjpooZqYOyQK4bxRwhhqwwx2Jpe9qPL1lYtYsYyU1/6aYPsNyPyTfBCP/lCfduUPxukEkrtJ9eiBtt5VCnKx4F5jtV0LTOLKDhXZI2h0fEXVNvCDs8OK+NBEZ0O3+LFyiQeN6fLdH03qZPIl4K1eb1yPSZQx6MGnxIjxDmaVHvlUJtd8t01bmVT/pYVywMhdzPPH4NxgiSp0QP1EINQkLAFqdHmVZTSb8Pc0U6n5/T9s3bhNEjzrArGYtAlqO2yAaytun46vh+GrifBw6Hf6NOq3UsVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pA0risZRY0AGIGABB1yT2ErBUbUGKsHltOmhVQW9IH4=; b=bpj9vCI7ARpHtNZQkC0LHeX5IMxPR8wX7oySM7nQzvgzkFR9z3zhu1Vou5mD0Rz+eV2a8iVNXpMEMWQDYeovYX+15XnKWVJ3MF1onLiK/nDCJGiO1rkaUdHCNzf45/fsq8NlXpqPZLpBJNgIDVWAyfaPXLkN7LSn3Ru07L3y/D0G8Gv/7kLNS/D2rsSxJ/crSl/bphBCk8Pk7WI7IF7LqXA2XIj6v9r+gfwiCFEQaO7ppGGoBMZAD2V6i2IF1ixYKOFovEX42Tx8mNQiJcOcB/0A6tlojGok0Sz13m3/5jOsChxgBODPsw/UDni1DHM/5zj8k/A1bC8C4NtsWCjSaQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pA0risZRY0AGIGABB1yT2ErBUbUGKsHltOmhVQW9IH4=; b=L85p98EcyO4b2wlOBS14BUs4kefO0BuAovjg7OfdgdwujDAi/LpOGzqBrUBls3AmCBMJOW+48ujEIXWqMxUTafnwPufThgFs1lnJNnfBGH5Rn5KaSGU+fhMUtATXouIto2gw25OyRsrzWvh9ahqerZgd6QHL+8Ohub+DxtlENl8= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB6609.eurprd04.prod.outlook.com (20.179.252.206) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2367.24; Thu, 24 Oct 2019 02:59:42 +0000 Received: from AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::843c:e722:27cb:74e1]) by AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::843c:e722:27cb:74e1%5]) with mapi id 15.20.2347.030; Thu, 24 Oct 2019 02:59:42 +0000 From: Peng Fan To: "mturquette@baylibre.com" , "sboyd@kernel.org" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "festevam@gmail.com" CC: "kernel@pengutronix.de" , dl-linux-imx , Anson Huang , Jacky Bai , Abel Vesa , "linux-clk@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Leonard Crestez , Peng Fan Subject: [PATCH V2 3/3] clk: imx: imx6ul: use imx_obtain_fixed_clk_hw to simplify code Thread-Topic: [PATCH V2 3/3] clk: imx: imx6ul: use imx_obtain_fixed_clk_hw to simplify code Thread-Index: AQHVihcVnXhA6yBIr0StOO62YdrjXA== Date: Thu, 24 Oct 2019 02:59:42 +0000 Message-ID: <1571885777-21662-4-git-send-email-peng.fan@nxp.com> References: <1571885777-21662-1-git-send-email-peng.fan@nxp.com> In-Reply-To: <1571885777-21662-1-git-send-email-peng.fan@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK2PR04CA0081.apcprd04.prod.outlook.com (2603:1096:202:15::25) To AM0PR04MB4481.eurprd04.prod.outlook.com (2603:10a6:208:70::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=peng.fan@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: e0dc5a88-5058-4f67-9185-08d7582e37b3 x-ms-traffictypediagnostic: AM0PR04MB6609:|AM0PR04MB6609: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:669; x-forefront-prvs: 0200DDA8BE x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(39860400002)(376002)(136003)(346002)(366004)(396003)(199004)(189003)(305945005)(486006)(26005)(476003)(102836004)(2616005)(44832011)(52116002)(7736002)(446003)(6506007)(386003)(11346002)(71190400001)(64756008)(71200400001)(66556008)(66446008)(66476007)(66946007)(316002)(186003)(76176011)(54906003)(5660300002)(256004)(110136005)(86362001)(478600001)(99286004)(25786009)(14454004)(2501003)(50226002)(2201001)(6436002)(6486002)(2906002)(8676002)(81156014)(81166006)(66066001)(6512007)(36756003)(8936002)(4326008)(6116002)(3846002)(32563001);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB6609;H:AM0PR04MB4481.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: aDOJCLJnQHOx2cAADQosEwuQBO0ESX/MTP31flBPwZgD71BGXt1r9St6ZVkvhyg5yrMFLjLoCIUDoe960SVJZ/heH3Y3j+H37rCufDYDfaXyTedK5s/2W9n+/MYYDCwfZFxWYk3ctD2x233aqaAH/fWwMmqagfzLpNnrOckfQZWn2iGZrjONowo2raZwWmwkaaD1ZDDpnqhMQ7rTHtxuuyRwIlLE+QQwm39HT21G+7/DRwc2QgU3c3shnBd5y/iqd6dxsZvvsHCYGJ2/X3KMRIsIOCDDlQBbNqxE1yFg6N1VKsdSQtGNjQXcJazAHa7ZzX9xKOYHHHZTtMg20icPr5vHWvLcjLIQJy4O60y8nDUhs4n2anEdqjpkOFYED9eojZK52c/f8sLdrdt6sbMYir+0YxOOkaiXtyAt9gIDh4tiJMVnS7Lgf3nPgfuALl0F Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e0dc5a88-5058-4f67-9185-08d7582e37b3 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Oct 2019 02:59:42.6197 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: MM4bjBgVxUsiNhi/9FnARa6VHqwePhWjExNRxP96RoKJyNEwYtp3U6f39AFSmyZ216deYkH87wX+G04TBE3hPw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6609 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Fan imx_obtain_fixed_clk_hw could be used to simplify code to replace __clk_get_hw(of_clk_get_by_name(node, "name")) Signed-off-by: Peng Fan --- drivers/clk/imx/clk-imx6ul.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/imx/clk-imx6ul.c b/drivers/clk/imx/clk-imx6ul.c index bc931988fe7b..dafc8806b03e 100644 --- a/drivers/clk/imx/clk-imx6ul.c +++ b/drivers/clk/imx/clk-imx6ul.c @@ -126,12 +126,12 @@ static void __init imx6ul_clocks_init(struct device_n= ode *ccm_node) =20 hws[IMX6UL_CLK_DUMMY] =3D imx_clk_hw_fixed("dummy", 0); =20 - hws[IMX6UL_CLK_CKIL] =3D __clk_get_hw(of_clk_get_by_name(ccm_node, "ckil"= )); - hws[IMX6UL_CLK_OSC] =3D __clk_get_hw(of_clk_get_by_name(ccm_node, "osc"))= ; + hws[IMX6UL_CLK_CKIL] =3D imx_obtain_fixed_clk_hw(ccm_node, "ckil"); + hws[IMX6UL_CLK_OSC] =3D imx_obtain_fixed_clk_hw(ccm_node, "osc"); =20 /* ipp_di clock is external input */ - hws[IMX6UL_CLK_IPP_DI0] =3D __clk_get_hw(of_clk_get_by_name(ccm_node, "ip= p_di0")); - hws[IMX6UL_CLK_IPP_DI1] =3D __clk_get_hw(of_clk_get_by_name(ccm_node, "ip= p_di1")); + hws[IMX6UL_CLK_IPP_DI0] =3D imx_obtain_fixed_clk_hw(ccm_node, "ipp_di0"); + hws[IMX6UL_CLK_IPP_DI1] =3D imx_obtain_fixed_clk_hw(ccm_node, "ipp_di1"); =20 np =3D of_find_compatible_node(NULL, NULL, "fsl,imx6ul-anatop"); base =3D of_iomap(np, 0); --=20 2.16.4