Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1392263pxb; Sat, 4 Sep 2021 08:31:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+nSDAGlyL+tA9xMSUdpa7i0wDWecHJCc5AoGFesF1EsRCu8LGn4QeJnjpZhKlzx1yNE/W X-Received: by 2002:a05:6e02:8f2:: with SMTP id n18mr2929999ilt.256.1630769500854; Sat, 04 Sep 2021 08:31:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630769500; cv=none; d=google.com; s=arc-20160816; b=biOyeVLz8Eok1aFGnj8tUssIDjfTBLn8dHQ9AMMXoRZsiBAtPVQM0H9pWpMHUUZ0Rg jFYucbzGB/puo9hensbyr8ZkxBuF63KU8/vPnq/2pHfullYLf9ibmQhpSK0HattWttYZ GXE9bAHQOK+6AQWGdR3YmTED2JoiubuiNnKpnCI4mhQ8Xbz5tm2yGShgVTg63vWMhWgA VtscUMYcipY4u5/RawcM0C2HdNd1ID++jISUNh+aimi1nAy9XagYR4giith/OQSzSyMC 6OofKK/Pujwk/6GoBLTep+4kyvvY+8GdypBfulfCd4v/JRq2uIrfibxy4/06RzrGnqKM P2Hg== 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=ZliqT8aGGBAzUiKPRsx+EJJ9poiMjElywLeU933rFZE=; b=CCLFnjI69PgSBy/FvZlmthHR1qPMf0LsGMpO/e2wh04TMeQ07BKC2eC/2AP4wqfJ+/ K4xomz1NljSaYfXenbK/mH28FGz6betUSigTTIO0C+rb4OYyFCkT4pWhi/RTrWfd0XTQ W2qNMrFca5tof3a7jBLz7VDeD9qN/sxlswWzkqX8dB0ApRPhsX88wlC08L2D6rxlsI62 6kTiqDvvuLZ7T6+Nop7/FjseVO3payRjfXkwQoD5t6kpBAwoYmK2GYHysGmC0UiLCTeP f3UiKxkeIsjTu9XmSSKR/wCCvPN49BeDG3gbQ+7Y9pCWYI23L997Atu8keqbzz1JWtcb dkWA== 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 m18si3000727jav.88.2021.09.04.08.31.29; Sat, 04 Sep 2021 08:31:40 -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 S236832AbhIDPax (ORCPT + 99 others); Sat, 4 Sep 2021 11:30:53 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:33780 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S230514AbhIDPax (ORCPT ); Sat, 4 Sep 2021 11:30:53 -0400 X-UUID: 077bbcf8511b42b4baf87eabcf2261d2-20210904 X-UUID: 077bbcf8511b42b4baf87eabcf2261d2-20210904 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1130274364; Sat, 04 Sep 2021 23:29:49 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 4 Sep 2021 23:29:47 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 4 Sep 2021 23:29:47 +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 v2] clk: imx: use module_platform_driver Date: Sat, 4 Sep 2021 23:29:46 +0800 Message-ID: <20210904152946.32042-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: c2cccb6d0b33 ("clk: imx: add imx8qxp clk driver") Fixes: 1e3121bfe51a ("clk: imx: add imx8qxp lpcg driver") Cc: Stephen Boyd Signed-off-by: Miles Chen --- 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