Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp282777iog; Fri, 17 Jun 2022 03:38:01 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vM05L3cADpZslSifzgEb6r4TXsgMgSzIZZwWwXMWOTvMCn2ikGU0HD7tsmx8vTYCrP1tIx X-Received: by 2002:a17:90a:a016:b0:1ea:97b9:6c1b with SMTP id q22-20020a17090aa01600b001ea97b96c1bmr9832529pjp.212.1655462281730; Fri, 17 Jun 2022 03:38:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655462281; cv=none; d=google.com; s=arc-20160816; b=pMYsUzBbn+V6nRswnIx7HdatnS0YVzlpYI6rdZAufjxweR0ELp1deCYgcKVyY37YfK LL4JSnjbiw8AbtShTlG/4kWrlKynK+AWIwGaga2uPJetYbfUH+zv2PtGZcAgVcyR7fqB FL4yjicINsJBgSV6z5gWzx8oeBALU+rf7hR247WxfF02Owsq/FJmDmRsRQOnCblUQTsa QtVMahYOExK6kPsY8614XLKUnUv7eYN0RzQF79aYfcIudqSMjMI8yMNlTgtV55UN2wQE v+7BAXmS684dp7IMRU6rm4EWpzd+rUuGBi6Yf5z3PwuGxYQ0KySC8m5/Vcd/c5TyjiP3 YpjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Sh3h0KKkH6ovJsX0vy6O3bBPL81E+4+ofSuniX7ztG4=; b=SJiw+P1LPXwQm+FZfB/I1BXcYsrVC7jqBmWmJpesi3mgOZUPnK557QV0q9kR97yVB+ +3XhCLzBCnrGLSYA09nZZPYZtJ26Pca2Rri8F48QFMG8Nr74d1R0y92hAAc5MWdnNlG6 A5dh6dXMfs4rRbNpV2vM1eMoY93c+AlaXTzp9IpfdbVhjOxSEdLDYmuhL7Ed5dYPHBt6 asg6I1plEQVcw6kPk7gNFGAlFcGq5HSZIXrLo3GG4e9ZabToqRI9Ez5bDmJmo7OFK9MZ OApnPyE51lfQHEmWskNsW5HVGtoP4pHxrfl2acMlSJlDsp/po91KN33td4Huo632QAWR 7stg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Xy6M9vpl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j5-20020a170903024500b0015f371008edsi5991538plh.396.2022.06.17.03.37.47; Fri, 17 Jun 2022 03:38:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Xy6M9vpl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380459AbiFQKeS (ORCPT + 99 others); Fri, 17 Jun 2022 06:34:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231422AbiFQKeR (ORCPT ); Fri, 17 Jun 2022 06:34:17 -0400 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 235B36AA5A; Fri, 17 Jun 2022 03:34:15 -0700 (PDT) Received: (Authenticated sender: clement.leger@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id D28E5E0004; Fri, 17 Jun 2022 10:34:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1655462054; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Sh3h0KKkH6ovJsX0vy6O3bBPL81E+4+ofSuniX7ztG4=; b=Xy6M9vpl+zl00OQvESFdbLJ0pEVP/qApo5QP44FMG3tjrWlx1CSkmTGz6DWIotYjfLxnDS 7fXhi/FOOcY2bXoUEFCfZccATy40KEiIPwoGdT7UFb5JjOtgp1KElTvGD4MmEzWp/xhynK oB44dMN75FryY8HlMVAMA/sazwkSQZnEIAZddsTmFC3Z8zGSPigbxf3EIWvKXlSQYs5MTt s+/tLQRi5sJHevMz5zsg/ivX2vcfjwC6VUA0Kxj8hUA1uLcgmgPQrm7ST+9dGlSp9zEPeY zaO1uqnIIz2R8SrYnqaKbekn0Uh9Ps+WASAcuRUD3RWZw4/pS0o//5cbxN/5mw== From: =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= To: Michael Turquette , Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Steen Hegelund , Horatiu Vultur , Allan Nielsen , Thomas Petazzoni , =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= Subject: [PATCH] clk: allow building lan966x as a module Date: Fri, 17 Jun 2022 12:33:06 +0200 Message-Id: <20220617103306.489466-1-clement.leger@bootlin.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Set the COMMON_CLK_LAN966X option as a tristate and switch from builtin_platform_driver() to module_platform_driver() to allow building and using this driver as a module. Signed-off-by: Clément Léger --- drivers/clk/Kconfig | 2 +- drivers/clk/clk-lan966x.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index 48f8f4221e21..ac77d4b2c742 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig @@ -249,7 +249,7 @@ config COMMON_CLK_GEMINI platform, also known as SL3516 or CS3516. config COMMON_CLK_LAN966X - bool "Generic Clock Controller driver for LAN966X SoC" + tristate "Generic Clock Controller driver for LAN966X SoC" depends on HAS_IOMEM depends on OF depends on SOC_LAN966 || COMPILE_TEST diff --git a/drivers/clk/clk-lan966x.c b/drivers/clk/clk-lan966x.c index d1535ac13e89..90a335ddd735 100644 --- a/drivers/clk/clk-lan966x.c +++ b/drivers/clk/clk-lan966x.c @@ -286,7 +286,7 @@ static struct platform_driver lan966x_clk_driver = { .of_match_table = lan966x_clk_dt_ids, }, }; -builtin_platform_driver(lan966x_clk_driver); +module_platform_driver(lan966x_clk_driver); MODULE_AUTHOR("Kavyasree Kotagiri "); MODULE_DESCRIPTION("LAN966X clock driver"); -- 2.36.1