Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp313153ybl; Wed, 11 Dec 2019 19:01:52 -0800 (PST) X-Google-Smtp-Source: APXvYqw5rE9+qzxcx6lqCILPqi1VGLQaKeBsZcAzQXsQWFiwSLeOWpQA5dIQfv6GDDARqEW9UW6z X-Received: by 2002:a05:6830:1607:: with SMTP id g7mr5577404otr.320.1576119712437; Wed, 11 Dec 2019 19:01:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1576119712; cv=pass; d=google.com; s=arc-20160816; b=C2dD7dd+NFwi2lbD9ErGukR8rVubbsWn6Mxwm2TCMBJv7EiKMG0E2jTWpOXD5OQ8e/ GxsniTWeHbnSdMgRkjDl6/CpPo6D4Z0WSUVs9T00LcUxjxoLAAfE4q61uPASDaevvQE5 ntZefeB/2fnfroQj2oS8KeZ5IG6c9+1y0gGjy/F0D36HWU02XGuGYKstZlozJJRG8m5R 5jl2hTjbI3WMUDyGATNkbi9cp+TaJVKYuYVRv9XFz1JYCbgWgbxQ9Z6vonvmcCHOfo9Y 4o9StwdTZXJYM4kgZrtQVdKgDQ8ZcCDnAiRjPN+6eG0B2u4xptOI2sIy7jtYVZg70a6a EYjA== 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=127ZqZr3yibLEGADIDwdS92koh1Pj0RZ3R7B7s2PvMA=; b=vBT57VLCG2Vi2nNntjJe6emPIolzEnD1iPDUVvvz2ApyOlV8vU7oLoVQDXYNbAM7+p hsGjPjv7urooAwWexMkCIz80zW0646xPks6REbUc7zurHn2Qc/v27wBEhyUyipO/mszC K5ST+YyuLlTQ9EhJi4YUa//ZKQu9Sssv9po4Q+wzpXI3LRUznZoAlaGP2uJ4WNx7+zsC geGD0RoEuYA6SGWNVFeBjJ5yeuQzyKlbNjSVRHArNq1/vwOdo35wHAdpvB5wda7gTQRa EHV2D0IilBmrQ4dELS0viI2G9h4uDcYJbbaBm2cvxT3yIxI8/zmapdf1kmgeU/dTrRKi iYdA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=BLCTg2v1; 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 t1si2079777oth.94.2019.12.11.19.01.40; Wed, 11 Dec 2019 19:01:52 -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; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=BLCTg2v1; 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 S1727926AbfLLC7r (ORCPT + 99 others); Wed, 11 Dec 2019 21:59:47 -0500 Received: from mail-eopbgr70082.outbound.protection.outlook.com ([40.107.7.82]:54337 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727783AbfLLC7q (ORCPT ); Wed, 11 Dec 2019 21:59:46 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J4EZh6tcu61qW/oRepJ0pSvGhXHeQG+sXZOCwoU3VDDq1DhkTHmH8WoVb1Yn78qM1ivko1dzZiN6qdI7NksF+SEqXs1R8QWiGjIeuGGVYgM/3v7n/STqBCf588M6Fcr8fvfXCeJ31N1tGyjQYjYU3s5xR9VviL01n08dS1yjzN3orAinuuT5paQcu3QIcgT2F6wZZzUa3DpPbvxL9Y/LTaBsv9u0lcrM8dMchYlFI/ehClP5x2h9pvrw5nEFArLpOXINuBxtQqJD3eVaLXhoj8jdA9NaIiWl0CQdmVKCWgUJEr8YW6UwcWxmzV0a9OQixH+QbnkyTOfFa+RkE+b1Hg== 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=127ZqZr3yibLEGADIDwdS92koh1Pj0RZ3R7B7s2PvMA=; b=X32L03hLn2FBQOKm/2h4ihJhyZLVON5IzcTPOjSR7FpK/aeuCE8QH6k8OQ5thGsFhvmBglR5FL0GxG7V6apO8c7cDVTmGgVcMfX9M3EWpWatarPhx5wLyKy9rKrY5ClXoIFDoMah1ThdFDVwi4o2xRr0X5X+LVkAhw/trZ76HypFAg70bMjbzOfnHvhzwpSEp6TS0pXpEgVQsFXK6PILZKmbHmQqXFe+Y/IkwXjzy7n5+Ynp+pxwAq1WF3ka5q3xlxveQbuZbVM4H0ECAKvbwSDJaf4d5O0QAQGBOHXNU5PHMeHtEGByFIrs8+yS5moHLRx1tt67FuA+bAvYtR47FA== 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=127ZqZr3yibLEGADIDwdS92koh1Pj0RZ3R7B7s2PvMA=; b=BLCTg2v1dOOJtMCV3M3NwmxFMcuw5XrXrPvIje2rz5l3atshSIbbTgnZQ2b1wZPaoI2H+4L3QqSeVIAiDAxaWf9DjVa2g3he+x8dRfSv7p8Ar30ScbatmIwFrlANPJWZX9dnZaQ/eSkd0/DTb+vB/USXPgXgY0Oj2J+WwmXZcTU= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB6196.eurprd04.prod.outlook.com (20.179.34.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2538.15; Thu, 12 Dec 2019 02:59:10 +0000 Received: from AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::505:87e7:6b49:3d29]) by AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::505:87e7:6b49:3d29%7]) with mapi id 15.20.2538.017; Thu, 12 Dec 2019 02:59:10 +0000 From: Peng Fan To: "sboyd@kernel.org" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "festevam@gmail.com" , Abel Vesa , Leonard Crestez CC: "kernel@pengutronix.de" , dl-linux-imx , Aisheng Dong , "linux-clk@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Anson Huang , Jacky Bai , Peng Fan Subject: [PATCH V2 6/9] clk: imx: Remove __init for imx_obtain_fixed_clk_hw() API Thread-Topic: [PATCH V2 6/9] clk: imx: Remove __init for imx_obtain_fixed_clk_hw() API Thread-Index: AQHVsJggB12mI9cJ2kSnN3lMk35vrg== Date: Thu, 12 Dec 2019 02:59:10 +0000 Message-ID: <1576119353-26679-7-git-send-email-peng.fan@nxp.com> References: <1576119353-26679-1-git-send-email-peng.fan@nxp.com> In-Reply-To: <1576119353-26679-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: HK2PR0401CA0022.apcprd04.prod.outlook.com (2603:1096:202:2::32) 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: 693baaa6-e0ba-4736-1466-08d77eaf42b4 x-ms-traffictypediagnostic: AM0PR04MB6196:|AM0PR04MB6196: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:597; x-forefront-prvs: 0249EFCB0B x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(396003)(136003)(346002)(366004)(39860400002)(376002)(199004)(189003)(81156014)(8936002)(316002)(81166006)(8676002)(36756003)(52116002)(478600001)(4744005)(6512007)(6486002)(71200400001)(110136005)(54906003)(86362001)(186003)(66476007)(4326008)(5660300002)(2906002)(66446008)(64756008)(44832011)(26005)(6636002)(66946007)(6506007)(2616005)(66556008);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB6196;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: ahiViBqAzNCa50vorosuUMDVYmTRD9vQHKSRKe0z1y7N0cTPbd1FIB4C5gGOQN7fA4vJSCXQIAE5I/aE/ouLn6dWwWF8uJBKCReS3rCQDJGDfm9/ekdz0D/L6WfR6gLgC+PtZsb6+qLdXhGfWDpa66i2bvEgcWKSFRSNT78eW/4C8o4jxquVZm/N59iVWFjPoy2w3o8iW1dDYIoHGJ3jOp4+xXOVtImiYk03z9PlREC20Ld9/uyBAiRfYBUg73cYmwzLtOPBje5V35YgE5ZC9mZHsKrB2cgogSZ7/OiWBvdyowi+1j/3kPwi1v3TKxz0rcw/1puH/p/dzv6+nCk7W40/MlRSjfDWrPdXN0qtXNG0fTmmOqF4R0TNwdMPumhqAQu8bnyJZBApeJHBTzhezpEcegcVrsgcXECmCpbTbkwgFZiXD+/ca8z7V4ioQUmy 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: 693baaa6-e0ba-4736-1466-08d77eaf42b4 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Dec 2019 02:59:10.3476 (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: FKWbq96K6KAjaLGi0QIudOD52YZOgnJS9zqrEDEl02SecEThIyGltPrJ2UivUxJ5azXlp5dFY+d9aszGHpMQwQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6196 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Fan Some of i.MX SoCs' clock driver will use platform driver model, and they need to call imx_obtain_fixed_clk_hw() API, so imx_obtain_fixed_clk_hw() API should NOT be in .init section. Signed-off-by: Peng Fan --- drivers/clk/imx/clk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/imx/clk.c b/drivers/clk/imx/clk.c index d0ce29f2c417..87ab8db3d282 100644 --- a/drivers/clk/imx/clk.c +++ b/drivers/clk/imx/clk.c @@ -102,8 +102,8 @@ struct clk_hw * __init imx_obtain_fixed_clock_hw( return __clk_get_hw(clk); } =20 -struct clk_hw * __init imx_obtain_fixed_clk_hw(struct device_node *np, - const char *name) +struct clk_hw * imx_obtain_fixed_clk_hw(struct device_node *np, + const char *name) { struct clk *clk; =20 --=20 2.16.4