Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2053765ybg; Thu, 24 Oct 2019 04:10:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqyIquBUN5yjZec9NIWj1ztOh0Uiql9iHeThMm5NGX+YhVIakbY4s217e22/DP0Vls93dzNe X-Received: by 2002:a17:906:2989:: with SMTP id x9mr15092471eje.318.1571915453175; Thu, 24 Oct 2019 04:10:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571915453; cv=pass; d=google.com; s=arc-20160816; b=W4kIDMPDLYRI8srcHRvKiDIEH8ml7KvLESL3IQwB/TG/TFfIARO8C0OXTNHfncpjSU 1TJr0dp88FDPvu9AF/vcw6P/a+faNJofss9rZjjH18gE+B6DPGSJ1SzZnSnVaCUta1zN +7GHOU2Ec4R1n6xfQapLs7HGIZc9/wmu27/hv6Iky969YVAGjZQMNj/q6dBXM8Azu8L7 TNu4KzaaoK+DaesyeLs+55vD4eeE36NZ3hJtNTECkG77QOg1KaJqfjNnUKcJ2nDeYRou O4OKh+sn2josrEotk0NNryYmgTJdY0gdCmGzsfTqlXn61O6JSYK4XDiebW4+zDaDQv1d X1qQ== 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=bI9tTg17t8EgZCrbJoJol28GjuuJsBUZnFzIqIKwFhU=; b=g42kQAcSEHy9tn0kUKYVAlzhnk5QES5fRmLPBeBWuJXN5dCIlJRBYg9gN/PUG/tW9r OZthnoAemZG4QPhseYULNukYUIt+HkstYvuvBzgx0DTKRF6gFto/xNcujAhOrmGxsT0D f6S8YG5x/0y8i0XSRU1yV3SLsadFkU4azs54XrE70Rr+AqGJS2jUhljI1nVEhoxxk20b 8l7l5uDE9t2u2OJsrJa3Q+xHtMSIKrRUIJYZEXWq3saJcSdnVc7I0xC/Dj4fV/JEEoCR nHcwvPvUsPq2u7p+I96qahJ+J0YYOCrkR58dHROE2JhpY2FjlurK7JUNGOk8JvXOgQiL H/cA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=pr31gBgb; 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 z16si9047723edd.314.2019.10.24.04.10.27; Thu, 24 Oct 2019 04:10:53 -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=pr31gBgb; 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 S2437048AbfJXCbB (ORCPT + 99 others); Wed, 23 Oct 2019 22:31:01 -0400 Received: from mail-eopbgr10080.outbound.protection.outlook.com ([40.107.1.80]:25089 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2437004AbfJXCa7 (ORCPT ); Wed, 23 Oct 2019 22:30:59 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nlyZCvE698wyhB+LgH9xI+GlPgNteaSVgdwMT0MqGQxr0FF7zdbeTwWSUePQ74SEFYB4SXSZgE0zEk3w42D4DvoDYQE0ksBRX41krEsxkDk3T7mPlBL8vpBDKg9RDUkQzpkW5H5lMc2W4zN8LlEBNHB38LuCkj0C5SSRYcgGt2i4fFbeJ258VqoUIZx0fifbJGLyNKZx4mSybF0FVqmA3M8yT8JShQOcq1PtpzjKeu9TfFswvMkBFZsn+Ty1KFk1C54vW7bGxpFaPQtS1XNn0jyMW3BNzku6BvlJFoKgYCi15RfeE5SSdevzQ1Od0E78sN8ncTNorwV8yq1pq5/EFg== 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=bI9tTg17t8EgZCrbJoJol28GjuuJsBUZnFzIqIKwFhU=; b=A/rBUM+5F7x9R7gYRpbmES/EqNXozwY7s48csmb8H8JCt4IZeUUTSUmGGa3+j6uqxo9SDftVVPz755soTarLd8l1ENMbOr26S6N5b+vTAprS2X7ffvXkrG8WvTBYtCuToiWeoeLV9JJZxjIwasVK+ZShXyHY2Id3ift1FEYZuEPyUKNVHM59P9GQZ1fvWNs7bgDaZYSxVwyiWSUITafLYOFBAlL0FWo8tVIxg8lx55P9dkElNgHRYmMtAX8e5vCCelApjz+43NteHHLphpgKRMvTKg6Acm96fm1bPjdBQZg8kuGmXoyoJMOjlqv38YAf+TYAZiNmcAIEEpFPPT4dzQ== 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=bI9tTg17t8EgZCrbJoJol28GjuuJsBUZnFzIqIKwFhU=; b=pr31gBgbSh+NyUWyr1xv4opVkL0hj4LoTxaPXEqsQoVI9+R1cFaeYLnkmZChcsPiN9mEjMw9w7mOnQLZg5cOaAqxZDjS6FuYqlBXhR7kFzArFtCJf3JhqkNUtg+r+LOOf7NzfSGpEdrO4nikpqJsxds2XTEkFIyBDma8G7iFReI= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB5315.eurprd04.prod.outlook.com (20.176.215.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2347.21; Thu, 24 Oct 2019 02:30:56 +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:30:56 +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 3/3] clk: imx: imx6ul: use imx_obtain_fixed_clk_hw to simplify code Thread-Topic: [PATCH 3/3] clk: imx: imx6ul: use imx_obtain_fixed_clk_hw to simplify code Thread-Index: AQHVihMQWUCjM/gMv0eoOrW/rlEoYA== Date: Thu, 24 Oct 2019 02:30:56 +0000 Message-ID: <1571884049-29263-4-git-send-email-peng.fan@nxp.com> References: <1571884049-29263-1-git-send-email-peng.fan@nxp.com> In-Reply-To: <1571884049-29263-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: HK2PR02CA0200.apcprd02.prod.outlook.com (2603:1096:201:20::12) 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: fc6d7540-35a9-4478-48e3-08d7582a333b x-ms-traffictypediagnostic: AM0PR04MB5315:|AM0PR04MB5315: 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)(136003)(366004)(346002)(396003)(39860400002)(376002)(199004)(189003)(256004)(99286004)(6512007)(52116002)(3846002)(4326008)(476003)(76176011)(446003)(8936002)(2906002)(5660300002)(6436002)(11346002)(50226002)(6116002)(6506007)(486006)(7736002)(71190400001)(71200400001)(386003)(305945005)(86362001)(81166006)(81156014)(2201001)(8676002)(66066001)(110136005)(26005)(6486002)(54906003)(2616005)(102836004)(478600001)(316002)(66446008)(2501003)(66556008)(66476007)(64756008)(44832011)(186003)(66946007)(25786009)(36756003)(14454004)(32563001);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB5315;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: nidm5K3oYVUfPR8gqSfFIQ20UdFZYHfPvyCch23p7iJMdpRtZ9uYIBaLRR/TrA3Hw6ik47AAG7fkWMX/M8uwSuJCcXK679/ClI0MEKafyyBNOKdPYZ09pGnX5RhBPMj7k4ZDgEyAg74d+vAwbdzdYAT3N2vcpqMnX5DWr0yawH4mjpEqYcgMsGDK61C8ixKTVH/pzbk9jG230i9kf3/Lgo2u9Ommr5uNLnXpLckslrZRBrrTNT5cJ26eDZ6sqitOpWTAZWc5sWNcpFTuTjYqWZOcZ7Ygnv89UaNHnONimDb+Ey9f9AxY9eQ/8uwQoUa9IQU4hKRRIqLb0+cYPNIDdRC1d77xeuE1+bbmGN9abxhjltgpBUi8+RUjKzmRWZ8zNa7Tn4mcarXo2bbpeHpcgZugub3O46LJ5IBDH5cbj+y1Fc8Zl6ZL5cHqilceQS1E 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: fc6d7540-35a9-4478-48e3-08d7582a333b X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Oct 2019 02:30:56.9137 (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: qStNSryXhqk4EIIst/zLh8afk36pvzBB/xBgLQ4XcOgVMYqwFEBaf0HzjN5foC4GYO94tfp75mTs6u5YXkvpNA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5315 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..46a8a20e891d 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(of_clk_get_by_name(cc= m_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