Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2628332ybg; Thu, 24 Oct 2019 12:40:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6y8EK440LjNt2gLvRZjinu7kJ7OhOhlX9+VYnTDLawVUMDmI3OWQ1bXMAf8BtcpRaXeLI X-Received: by 2002:a17:906:77d9:: with SMTP id m25mr4727253ejn.76.1571946002882; Thu, 24 Oct 2019 12:40:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571946002; cv=pass; d=google.com; s=arc-20160816; b=hTUuhRTNcttB6HEvImmzwE0Z3kDPcpmkpgruhZ0Sy9b4xv2NLz8R00b7ugXy5Yoknj RgoScrQ8ecJ6eriZH4l5x7GziJ8uQeopfLFjImc3XqU5s6m6aNNEkDCmTW+e9K6m17Qk XVDItjboA1CqLl74C1qyNGvjT9k+HAxAWGdUdX87RdnYh04Utlmq9+B6x+SHC2xGaXZR WnJ0PcO/jbYp4v1wUd8Sho3aVvNlk7Syrppb+qqC2JuiWVH32E5PEVySr3J7VYmd4mq0 CMlx0UjIOobTOBwVZc9OE7g9vLxMTXcDpZ6S1xWz5hN7nWxEBTqgSNYX8gOyP/zIOUwx v1FQ== 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:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=DboEOpm25KIvAGHf58YaY0IM1XFgOv8fiCylXk8YWRE=; b=jH9TEu7nv4ovLW8is/ahGhFsSdkYpUTJvhevDrtwsBxALCKQwNKp/QJPQwTsxirMHv 1sMgc+mpY+mVOfcSuJW5AqRusvFs15mBaMddKQk54QZK9h22N3rnnnvZoH7qEM+OIpjm QLUW5YqPdj3uQ+lWRx4iCiYCJ4JMeq9P3YC0zBD9if+XbcWnsrPc7SnknHYAcz8FOE00 H7zWbdexGZpcx1IVSWfieKSRJBZioNlTLIx4xpdjX82hnNwdQDQQgeQz5dw12mXv3UeR Vxqc7IFuXw9ySggUWtD+67QRH9SYXL+oQeDYtI38vTV9FouK7lkXTBMf9ZZDRLIU1yrp VFAQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Oqo4lcdq; 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 r9si4327532eju.251.2019.10.24.12.39.07; Thu, 24 Oct 2019 12:40:02 -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=Oqo4lcdq; 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 S2408265AbfJXCi0 (ORCPT + 99 others); Wed, 23 Oct 2019 22:38:26 -0400 Received: from mail-eopbgr10040.outbound.protection.outlook.com ([40.107.1.40]:12801 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2406545AbfJXCi0 (ORCPT ); Wed, 23 Oct 2019 22:38:26 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ecaiCWJpCK7IbUxcbMTXWs/2jajixTf6JjulitG8BuScshCP6679ypu4/ixbj++m7N8DrjnIVWri0WkCRKX5NJ1/funsIM6qcxiy3pIRD2qAJONlqTO5Dxpy3y+f6YxL3J+00PMGQo5Dc+Tz+8JONhkrCxlfP5o+lRDByCyKAxUMYV12itAAkBhTR0n7AjhCAzLx0spIhxOPXqVmxF91cAc1NSFxgi1FuGFAulIBFdrHk5bjNm1mdMyKmM9sZGIiDQfPGgejOn2Nnftty4Ebe4eqgG5Ij9i63UQcOLvFKdOSj86tPdsNZgt98JH0DOCE6JysVyA2MolGo56W+tklkQ== 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=DboEOpm25KIvAGHf58YaY0IM1XFgOv8fiCylXk8YWRE=; b=K2TYZE8434702yIDSLzO5hWIHkWM+9yJMQ4f/2ox8uuT399R2u7m5941z0OHsRdtZEK0yPj8Pq9ZJmdbhFKge3inARZxvAFfKt8SvbpyUoJo7SSpgh4dAncNKoZen9Z4m8+2PMj0bcfQs5dL3vgy2RzIIxffYbTeEal29q5LrVZ9g/Q+Q6vHJBNDl+Wi/d7sRv5NbDOBC3Q8uVAXFMoza+SzHYu+JZtNxfN8yUthn2rmB5p21F0xPKqCeByhlPUrWq8ITy/0XDsvf6eIMqsCPTroQRyYIgD3g2mO39fIxBcdujzGknWMGjtlq62rNI+ijzyjR+4PNJwbiSKUfexgMg== 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=DboEOpm25KIvAGHf58YaY0IM1XFgOv8fiCylXk8YWRE=; b=Oqo4lcdqUWiRfc0cM3SyPZxRi3zegzeeO5+dOMqtKIjEHDVM+fvFhzGQQZeOOwdAdY2QxZoEIGVBaSnIAqQFVNNpATLkAPY+Uls01LyWbjuxcGorRDUIDt8k88gbFsbA8wzVjWnxKS9jZIKrEXPsvLtBFH4W97vnQlRit6oaOGM= 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:38:22 +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:38:22 +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] clk: imx: imx7d: use imx_obtain_fixed_clk_hw to simplify code Thread-Topic: [PATCH] clk: imx: imx7d: use imx_obtain_fixed_clk_hw to simplify code Thread-Index: AQHVihQanyLud71oXkiy01GBJE3P/g== Date: Thu, 24 Oct 2019 02:38:22 +0000 Message-ID: <1571884513-19892-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: HK0PR03CA0051.apcprd03.prod.outlook.com (2603:1096:203:52::15) 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: 7e3c5c47-50dd-44b2-a890-08d7582b3c76 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)(376002)(39860400002)(346002)(396003)(366004)(136003)(199004)(189003)(478600001)(2616005)(54906003)(6486002)(102836004)(66066001)(2201001)(8676002)(110136005)(26005)(36756003)(14454004)(66446008)(316002)(66946007)(186003)(25786009)(66476007)(66556008)(2501003)(44832011)(64756008)(3846002)(52116002)(4326008)(6512007)(99286004)(256004)(7736002)(486006)(71190400001)(305945005)(386003)(71200400001)(6506007)(86362001)(81156014)(81166006)(4744005)(6116002)(2906002)(476003)(8936002)(6436002)(50226002)(5660300002);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: +yE3Y7dTAmJ7jmPVMVSgdgmjFFOmGkBKxcYtY5MTGgmpZlwVlN1CnyNR2q2BI67MsqaFsb6zJ0YZG2o32G+/JHDqGMg+xk5xKC6qPxDrAylzy4nwtuv0P2/IKSGbCQmeWbDE5isnA/gyg1rypydO2mCGdnlDY2c+V2lSa/Six5b1geBtdYKMRvb5cm3780ojDhbucHu6jGAiuza0Pzib5eu0XLEXBkf5NfXAkJyTM1FcFXQh7w4v+OGFiZSqJvL0mOFpVV74vZ1far8SJI+E6wiqAci0r+TTwXsiHvBhCYr5WKesqEOiTo/PvC5MJiOJh90wI4sHL2Y14JzgUGJxeCa7of0X1/9NJXA8WBLq7wULgl7etJMF59Pu6TgOjR/1J30/yHSzvkjDGdcrUJ0NPGrBkiWyUY/k0AF+fdIU02k0I+b46Y01QB3AS5iDMVkr 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: 7e3c5c47-50dd-44b2-a890-08d7582b3c76 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Oct 2019 02:38:22.1179 (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: 6ymiU5JAVjc1Ol3D54ZuiPk+Jtf3BBG0LqNVWYFbmQLq5VJ7pKky6C7NIl0wzmlU1d01KcbuAHl8SNBxYuHtAA== 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-imx7d.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c index fbea774ef687..0c9f7adb41ae 100644 --- a/drivers/clk/imx/clk-imx7d.c +++ b/drivers/clk/imx/clk-imx7d.c @@ -403,8 +403,8 @@ static void __init imx7d_clocks_init(struct device_node= *ccm_node) hws =3D clk_hw_data->hws; =20 hws[IMX7D_CLK_DUMMY] =3D imx_clk_hw_fixed("dummy", 0); - hws[IMX7D_OSC_24M_CLK] =3D __clk_get_hw(of_clk_get_by_name(ccm_node, "osc= ")); - hws[IMX7D_CKIL] =3D __clk_get_hw(of_clk_get_by_name(ccm_node, "ckil")); + hws[IMX7D_OSC_24M_CLK] =3D imx_obtain_fixed_clk_hw(ccm_node, "osc"); + hws[IMX7D_CKIL] =3D imx_obtain_fixed_clk_hw(ccm_node, "ckil"); =20 np =3D of_find_compatible_node(NULL, NULL, "fsl,imx7d-anatop"); base =3D of_iomap(np, 0); --=20 2.16.4