Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp252058lqj; Wed, 10 Apr 2024 09:22:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjFqgYAQztEcrQT+2Q3KHPn6o0riVQqLiAhCVABCbfWV84miuAK64DSPngIwesiZBW6aRqp54w+BRvLxgz1K9ECkhhdqB1/QYCU+0wEg== X-Google-Smtp-Source: AGHT+IGqx3r8HZqAP9F+WwVzn04mGV4fBxIqoNmfv6tvtzQmw195r9xZGhRCQRe74sieyoqaFtaE X-Received: by 2002:a17:902:b783:b0:1e0:bc33:d with SMTP id e3-20020a170902b78300b001e0bc33000dmr3026778pls.31.1712766145184; Wed, 10 Apr 2024 09:22:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712766145; cv=pass; d=google.com; s=arc-20160816; b=ol4mMC4uUPYY5VnBHWuuOmXWv1SJ0e9gByVzD/TtVvGyOb9oGX/pVDezBqtR6rEzA2 2HI70199hTjo04AsJsAv28pNdWHWmauDun6CYa6U3pJBTJhrJHo7WQBBitiITE5shS85 w3pmVl4GuCN3f+bagC4DvKyq+TrRqSRlbwJk6qrnQLnFtUK+Em+r2qnZuuOqFNo+tbUE Nb50ftLc9Up/JMDZG2dL8h1N9VACMUyBuufZDtZJnJRKJsO4O7Nv/m4uOywhNqv2cKa7 s0dZS2Oa+KI4LTg+bea+aBcUwH4FQAxn3UASKfqDF2h/2bmzUJlk2Dh8dlRjmmXeD+ML qZaA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=Fq/bF1ZTfA7hhLB47wZUl24eWKs3mrQ1SsWIeyh8/X8=; fh=IAOvt+2MokDIG4OwSTkEZGGnI52PHoeg1kUY7Qy35M8=; b=PTlZL1YRMIYi4qA+sHDyoNy0S7oEs5p2jzCvwfwfZnhNAXl4gHQCMxJe4uSPyRsrZS 2e6rw0nUfnJGRPEDfOal2h5TBeyS7wABeEI+ZQ/A7CwS0+0hJaRhUzKZFGKBgkvsqkEY CxaFziEYvwKnea5IVVmo+uwNdMxGZZQ1xP3Yg2faWcZJOhh5Itvoo/ZZzbfFGQIC2T8b pzmAytCzE66vwSBOuO3DTHyJXUD6gkvoCI90Kx5IB21FFurPf9Kdoux//zm7sszorsWZ 6Fz2PxLb3qqKope1foDSva4OFhxpX9H8IZASFpRC8+DtziQGusnbfuvxw1CyZqje2h/8 BtYQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PmdksDvZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-138925-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138925-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id o3-20020a170902d4c300b001e3e838ee4esi8272701plg.506.2024.04.10.09.22.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 09:22:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138925-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PmdksDvZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-138925-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138925-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 81C1CB28BBA for ; Wed, 10 Apr 2024 15:55:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 690AC174EF5; Wed, 10 Apr 2024 15:54:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PmdksDvZ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 87D9217554B; Wed, 10 Apr 2024 15:54:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712764453; cv=none; b=Agw5GcMtzVL8/jw8WOi1kL93woEFE9VHO/aigFLxfnrktLBpHtjz+bHM1sh4zBNqdjiiRSDp2QwxeTwYU5O8aFd/T0NRTwPandrFmqhnH1QhBZ0OKL7WF9xemJxGGNsFbG/NLs01qvB9Jn3fXAJ2r0iNd7VdJ0wGAgsJ+8rox/c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712764453; c=relaxed/simple; bh=bb46vZ/qYJOGEUqqoTrn1SAKdnMs641lNoDDmlmSBP4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=GFZdkj/zc3R8OmKsoznDtTQOgXjWZeFCKho8jiBcgsTXmvW0CMFRjQ2IhJXRc/IqOUVl0fxfgse8VJUZIQeUuA2NmpHWSB8IWmOoQERl/6JCN9NoO8cSodtb8Cu37eEhHGgShFq2RBNXJuZ6PaWd7FCn2i15YWw2fuhRGfLtQbY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PmdksDvZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97F42C433C7; Wed, 10 Apr 2024 15:54:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712764453; bh=bb46vZ/qYJOGEUqqoTrn1SAKdnMs641lNoDDmlmSBP4=; h=From:To:Cc:Subject:Date:From; b=PmdksDvZxg0DP0QWJHIis2PiQoTUR4cgtizWYpZ/k2OiPuzWvMgndJlbmlQaDp4aP yORgpECpNY3O/9dzpflHaPalZopZlIJ37vwFL3ft4ugAjws4S8HKuwCY+56MTsw4+N OlGIH4DUBSoIBzSDoR9UE4nEzgbH6teJqiSNtRX7GBBF15zUIEPPwi4oliYOz3BTsl 93JKL9ektnoMb+BvJ9ZnC1YAdYP0DN1siBUbLAEXO7f/Jv6F1UwMS9cbU++ZR2VCtG +52W8LGfjNwqtTWBDe5GxYZlvdFedIW5I1yrr1qVmqLRmJgLYRnbtCqCTDfCUCzkzL BzizaCcSBLPZA== From: Krzysztof Kozlowski To: Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Kevin Hilman , Martin Blumenstingl , linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] clk: meson: s4: fix module autoloading Date: Wed, 10 Apr 2024 17:54:06 +0200 Message-Id: <20240410155406.224128-1-krzk@kernel.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table. Clocks are considered core components, so usually they are built-in, however these can be built and used as modules on some generic kernel. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/meson/s4-peripherals.c | 1 + drivers/clk/meson/s4-pll.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/clk/meson/s4-peripherals.c b/drivers/clk/meson/s4-peripherals.c index 6c35de3d536f..22ff030bd6a8 100644 --- a/drivers/clk/meson/s4-peripherals.c +++ b/drivers/clk/meson/s4-peripherals.c @@ -3799,6 +3799,7 @@ static const struct of_device_id clkc_match_table[] = { }, {} }; +MODULE_DEVICE_TABLE(of, clkc_match_table); static struct platform_driver s4_driver = { .probe = meson_s4_periphs_probe, diff --git a/drivers/clk/meson/s4-pll.c b/drivers/clk/meson/s4-pll.c index 8dfaeccaadc2..8a917b9703bf 100644 --- a/drivers/clk/meson/s4-pll.c +++ b/drivers/clk/meson/s4-pll.c @@ -853,6 +853,7 @@ static const struct of_device_id clkc_match_table[] = { }, {} }; +MODULE_DEVICE_TABLE(of, clkc_match_table); static struct platform_driver s4_driver = { .probe = meson_s4_pll_probe, -- 2.34.1