Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp232944pxb; Thu, 2 Sep 2021 02:59:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzE0DmZRSYm/w7mJWiFYKZ/knmyXzb5B2+X1N0qwKd0GvoOVMKFtHwBFY0rUGiwUY2Y7Bre X-Received: by 2002:a05:6e02:156a:: with SMTP id k10mr1764341ilu.24.1630576793292; Thu, 02 Sep 2021 02:59:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630576793; cv=none; d=google.com; s=arc-20160816; b=q8nJW/+vvfaiwrgf1HzwbSWZ+dzDoezstco9r3EQ51od2Imstm5YJanZ81yhXAWr0v 2c3WxBij06EJcXUZjTq0g+URVAqq4VSErDbVPKlbUYFhx7a5RgwWbn6sdtbGTHSlQQix WJ9eFOxUZbsvvIVo91w5qv+ewYTUydpjz2FX0E88OS5dUhPvUbLblK6uxRtPRpyUuLx0 pO9OPtI8D2XHMvnYRgMADW3TFZkQSuuhW754/1zqnJKBEO6WBXqV5Mnk7TnX8yw4u3sw PnNpOY0fS5k/lSDzQqgm0ww9mwfOdYA94woBKnKDvEWY1WolqNik1P0x+wugIShqIVxA AQVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=5GWJ90nUO+ofOjcsSlINi6KR+65BJcflBGqXKUS4zSg=; b=UdE4HyxvAdxqwcv1iEEps+ozGovEQbCaIdEQ0olC3ksCRZJv6vhWwjxKMKi92bwKbx QbwlmG5AWIG6NKFlEtTLgWHGNtxTwS+0zA5QRntXxCUQR8tVdvv8pSRes8ubQBO8no6i YIDevqYcde1fkHXYlgyYX6xylDH4U00IwxzVoXOZ5FUQMFMy1aK/Vkf94+O6AlgWw4rN K/voki6iWgTp8cl30UVgmqhJcb4wfwNFwA5wbOftpBjRXVkK2lyBz7RbsAT+/QnUmZIj Gm6fUwH+0jRehdkpMX/66AqEVv9nGAs9JLFtuMvcIe5XpeuKlrTE/jkBp7r9Nf7aQ/0t hgrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n13si1604834ili.37.2021.09.02.02.59.42; Thu, 02 Sep 2021 02:59:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243631AbhIBIDO (ORCPT + 99 others); Thu, 2 Sep 2021 04:03:14 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:48372 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S233362AbhIBIDN (ORCPT ); Thu, 2 Sep 2021 04:03:13 -0400 X-UUID: ad9677fad92543eab8de0177812a540f-20210902 X-UUID: ad9677fad92543eab8de0177812a540f-20210902 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 56561524; Thu, 02 Sep 2021 16:02:12 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 2 Sep 2021 16:02:12 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 2 Sep 2021 16:02:12 +0800 From: Miles Chen To: Abel Vesa , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team CC: , , , , , Miles Chen Subject: [PATCH] clk: imx: use module_platform_driver Date: Thu, 2 Sep 2021 16:02:11 +0800 Message-ID: <20210902080211.7922-1-miles.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace builtin_platform_driver_probe with module_platform_driver_probe because that CONFIG_CLK_IMX8QXP can be set to =m (kernel module). Cc: Stephen Boyd Signed-off-by: Miles Chen --- drivers/clk/imx/clk-imx8qxp-lpcg.c | 2 +- drivers/clk/imx/clk-imx8qxp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx8qxp-lpcg.c b/drivers/clk/imx/clk-imx8qxp-lpcg.c index d3e905cf867d..b23758083ce5 100644 --- a/drivers/clk/imx/clk-imx8qxp-lpcg.c +++ b/drivers/clk/imx/clk-imx8qxp-lpcg.c @@ -370,7 +370,7 @@ static struct platform_driver imx8qxp_lpcg_clk_driver = { .probe = imx8qxp_lpcg_clk_probe, }; -builtin_platform_driver(imx8qxp_lpcg_clk_driver); +module_platform_driver(imx8qxp_lpcg_clk_driver); MODULE_AUTHOR("Aisheng Dong "); MODULE_DESCRIPTION("NXP i.MX8QXP LPCG clock driver"); diff --git a/drivers/clk/imx/clk-imx8qxp.c b/drivers/clk/imx/clk-imx8qxp.c index c53a688d8ccc..40a2efb1329b 100644 --- a/drivers/clk/imx/clk-imx8qxp.c +++ b/drivers/clk/imx/clk-imx8qxp.c @@ -308,7 +308,7 @@ static struct platform_driver imx8qxp_clk_driver = { }, .probe = imx8qxp_clk_probe, }; -builtin_platform_driver(imx8qxp_clk_driver); +module_platform_driver(imx8qxp_clk_driver); MODULE_AUTHOR("Aisheng Dong "); MODULE_DESCRIPTION("NXP i.MX8QXP clock driver"); -- 2.18.0