Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1391221pxb; Sat, 4 Sep 2021 08:30:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3XSKKMAuMEpJ0AsmLvdvJbM1TLDJo/r1bNlOaWAxIBCMRsU+iqtc6d4gLddpUj9qVVQ8z X-Received: by 2002:a6b:905:: with SMTP id t5mr3325582ioi.209.1630769413358; Sat, 04 Sep 2021 08:30:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630769413; cv=none; d=google.com; s=arc-20160816; b=JQjM8Z6Q3vG9a523W2C6IgbxYG4qIm57ORSFNHq33y+r4bj3k+W3oSXTuU2rmJId/N g1LusXmruhtJWtgtRHUIQZ+JvlQVbn0ViLRbCuXVdIrBLITd1Niqc13JBpgjoVkuzRfm DQW3fbGVB9GHU5MzQvMq2rI94/7660ffgsn4V0l8lWBGp/AM14Zwwj5jFratbO82Ti9S mt+QqOnC1Z0n6Im22u2H1YvtFn0Iy0kIygaFzxw+19CaZbcSI1lbc0XsPjQpb+1aFQyc tEdAJjz+E79hEyloPImFA2soKn41q2IsuWYvsZ/t3BAI/PZMjQZoeW6q6M13Zcimhfp5 Fe0g== 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=h5uG1nDV6gU3OvWIEWXbRVS29JUZ3R6H3is4Gfh3zSc=; b=LXzCmoVioN74SnTMFBBaRwU0Wp8rGI9QpvHqfNpYSwpDNuhLfDXIlrxkzrH1FWo6Z2 EKj7k76gRzXiyXfUiSXN6tlBVOZz6OqO2zjTXe4/kIsSu70cLuHl1QzCNil0LnU2HVA0 Qs6TLFWx8g2p/r6ZlaXaMMv39XLlC45wnfx26C2Ywlxrt2Q39vCwPkbCeZ+59CvIiMPR M+bFv3knB/GCCbloUNFwMWhUApg+VNwlunnJs5r68KvpNqwQodokkSdnO9G1bTNnWmwz xwNe3Ad6W7ljiIXRQG9HXB3Mfy/K5fT7Ya0mjVrFO+UX0tXlfJILb1r+VSX35FwVKMug sedQ== 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 q15si2999760jaj.16.2021.09.04.08.30.01; Sat, 04 Sep 2021 08:30:13 -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 S231715AbhIDPaD (ORCPT + 99 others); Sat, 4 Sep 2021 11:30:03 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:33008 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S230514AbhIDPaD (ORCPT ); Sat, 4 Sep 2021 11:30:03 -0400 X-UUID: 9c386e506fa14310b0c201b20cb15d37-20210904 X-UUID: 9c386e506fa14310b0c201b20cb15d37-20210904 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1600371343; Sat, 04 Sep 2021 23:28:59 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 4 Sep 2021 23:28:57 +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:28:57 +0800 From: Miles Chen To: Michael Turquette , Stephen Boyd , Heiko Stuebner CC: , , , , , , Miles Chen Subject: [PATCH v2] clk: rockchip: use module_platform_driver_probe Date: Sat, 4 Sep 2021 23:28:56 +0800 Message-ID: <20210904152856.31946-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 rk3399 and rk3568 can be built as kernel modules. Fixes: 70d839e2761d ("clk: rockchip: rk3399: Support module build") Fixes: cf911d89c4c5 ("clk: rockchip: add clock controller for rk3568") Cc: Heiko Stuebner Cc: Stephen Boyd Tested-by: Heiko Stuebner Reviewed-by: Heiko Stuebner Signed-off-by: Miles Chen --- Change since v1: Add Fixes tags --- drivers/clk/rockchip/clk-rk3399.c | 2 +- drivers/clk/rockchip/clk-rk3568.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3399.c b/drivers/clk/rockchip/clk-rk3399.c index 62a4f2543960..a5169156f1d2 100644 --- a/drivers/clk/rockchip/clk-rk3399.c +++ b/drivers/clk/rockchip/clk-rk3399.c @@ -1653,7 +1653,7 @@ static struct platform_driver clk_rk3399_driver = { .suppress_bind_attrs = true, }, }; -builtin_platform_driver_probe(clk_rk3399_driver, clk_rk3399_probe); +module_platform_driver_probe(clk_rk3399_driver, clk_rk3399_probe); MODULE_DESCRIPTION("Rockchip RK3399 Clock Driver"); MODULE_LICENSE("GPL"); diff --git a/drivers/clk/rockchip/clk-rk3568.c b/drivers/clk/rockchip/clk-rk3568.c index 75ca855e720d..939e7079c334 100644 --- a/drivers/clk/rockchip/clk-rk3568.c +++ b/drivers/clk/rockchip/clk-rk3568.c @@ -1719,7 +1719,7 @@ static struct platform_driver clk_rk3568_driver = { .suppress_bind_attrs = true, }, }; -builtin_platform_driver_probe(clk_rk3568_driver, clk_rk3568_probe); +module_platform_driver_probe(clk_rk3568_driver, clk_rk3568_probe); MODULE_DESCRIPTION("Rockchip RK3568 Clock Driver"); MODULE_LICENSE("GPL"); -- 2.18.0