Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1647164pxb; Sat, 4 Sep 2021 17:00:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzX3N+HEJmMDxGchI849fsw2Q4scDTbazOpHeJw/CZuZEfm/THy7e5TbXHKMx5UCEzR0eJr X-Received: by 2002:a6b:8f4e:: with SMTP id r75mr4490638iod.172.1630800049142; Sat, 04 Sep 2021 17:00:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630800049; cv=none; d=google.com; s=arc-20160816; b=Mg1ScR5zDqH8AALlR5RMZ4xpxBmdJhjo49t+0ryc+seDTe5T8e78AAcALX7ehOr5H9 9j4MfLTWAQIkTgOGQSfvVRVijUxsFOHZuPKLR4fVuauwLQUK8mBDP0nC54CnS88rAut5 BZuoJtf+vc7vnEyqIuaEWB21sZW4TkLh34luXLKpTBVU21tFO/rgO78K6+QhUnfhnGwo EE6w6as+7aMv+dxyDu9AQeSPoRF6R6+0ADyh2LS3+QkZeFZO1zNAGgpK1bSxiCbCAsts 2/6hNo8t0X2cL4lyhzvHHhxXVPC00UQ0SjgilvwtslJANF289WsT5oSMwBnWRFJAgPkz s44A== 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=iVSYBBLE6t/lBgY104JxM6nxewZWVP/v3kuXM1mKyWk=; b=DVZ+iv/ewqRpzYLUgax4MAmtVi2TkqAc3WptCIDMPUzeqpFdIPZnWMo0z4LlrFsbtZ /u4xA3oLWAdtRzgcaoa2w78wsrbxXZYgtbZPbKl8sBvDM1r0YaEYJA/xY6yiaBEUQXhw zIyzu1CV/g822R3GiyjCVN6bLbnLKCFwPRzGgUaMr/BJebWxUI2mxD5DpqiG+2zbUw0n rZwV/2I5eg14OexX47MG6ECv+PW1pfOS0pyqt69pAcoATZ4FtUQQ6MUyBp/Ht4rfvfM4 Le8D6MiIeA+rj9U+81QovqV/A6RuorjN7X9VM1UXrEhgp+1HV2PKlLgbDnnBObmXkyWu Pzqg== 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 b16si3068701ila.182.2021.09.04.17.00.37; Sat, 04 Sep 2021 17:00:49 -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 S237457AbhIDXz3 (ORCPT + 99 others); Sat, 4 Sep 2021 19:55:29 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:44376 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232049AbhIDXz2 (ORCPT ); Sat, 4 Sep 2021 19:55:28 -0400 X-UUID: fbacad17170d4222ac4aa863823964fd-20210905 X-UUID: fbacad17170d4222ac4aa863823964fd-20210905 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1082875306; Sun, 05 Sep 2021 07:54:20 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 5 Sep 2021 07:54:19 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sun, 5 Sep 2021 07:54:19 +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 v3] clk: imx: use module_platform_driver Date: Sun, 5 Sep 2021 07:54:18 +0800 Message-ID: <20210904235418.2442-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 CONFIG_CLK_IMX8QXP can be set to =m (kernel module). Fixes: e0d0d4d86c766 ("clk: imx8qxp: Support building i.MX8QXP clock driver as module") Cc: Fabio Estevam Cc: Stephen Boyd Signed-off-by: Miles Chen --- Change since v2: use correct Fixes tag Change since v1: Add Fixes tags --- 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