Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp231695lqj; Wed, 10 Apr 2024 08:54:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV7qdpnJc/Exd1tur8pOjpauqhT8z6d6B4FaQ3CAWnThW3zvP8ZyOhZyBLR7hpnhoKRYKd1uYgwvfbcyNPxD1/bR2GyEyhiucrUQfyhcQ== X-Google-Smtp-Source: AGHT+IFH+8vh9EI58/6Xjmhl2Y/ab7i2pToF5r4nx4A/7OAEbQnXNI/zlyQTkElR1QJNj/Q1Et8x X-Received: by 2002:a17:906:2b0d:b0:a51:f7da:a385 with SMTP id a13-20020a1709062b0d00b00a51f7daa385mr1822631ejg.64.1712764492390; Wed, 10 Apr 2024 08:54:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712764492; cv=pass; d=google.com; s=arc-20160816; b=IfbcG90WNOyRN2juwpFDKGtDa0rdHVbapymPrvX1Y98JIA/qiVW+Z3jaY3u/g9p6Ll wMC2lsGV/POaXorzOEoIKZDACKDOQNPefWmzk//Rd22iqxyvB2LWtsMf10jDU6l1W61Y Qijmff0ZhtOhZKMOoj3wxnjwoNDTNRqxVhKsHDedioanTt1/1ER2eqsdRSjfg+8Oxbl6 LVf+daASj8HIvY/b8vWRf0u4oyB7GDE5Cd6r2OzE5P3yhXFg+Yuk424PjLkmTrPcwTbQ sPddM4o9KtmwuaQtiRa6WhTcM2lqsiyxyQqbvO5gd0yne6dB1YIKF19HvNy+qi3RV9V8 LNUg== 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=wB+/ratbATiPKgeNq2+vHOqB3CLd0Nwu8go/JM2xqkQ=; fh=Nt3lDH4F0wf61AHlgETH81ClwRu0ppWYIvxlfJnDXt0=; b=DC0rvqCLG73rlcq8ODDFce+yWRWcYx4g+i8kJvQ9ABqHexHFi6EDQ4qsiUxq68+aYv ZSVoBV3GQUyS8wMpa06RAGD6GP8wczOXVIkV5xO9A+OJ6vk5OE/CQx6nPSzVUPpxAR0C RMfDEcdRBLY7bfi7ANqrdKtaRQlXWSWe8eBSMOuzYwKuENEaoTXon1qjw1Fk1A8+ClfO +6scUHy81sbuVa85+59brHoQXpR1I2gDKPZp+nTyTjHNEMvCrpTa5OdKaMQJCzYZkcMS o8uoYmaZ1O/SIKH9ikmRuH+dAIuJun7T+tRoVcW/Ts+ekL6E+1qChF4CotnO6o2A6fE1 vKMA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AYIsoepc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-138923-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138923-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dc17-20020a170906c7d100b00a519c8b65c8si5855114ejb.367.2024.04.10.08.54.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 08:54:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138923-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AYIsoepc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-138923-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138923-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2222C1F222DA for ; Wed, 10 Apr 2024 15:54:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 27A94172770; Wed, 10 Apr 2024 15:53:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AYIsoepc" 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 46662171654; Wed, 10 Apr 2024 15:53:49 +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=1712764430; cv=none; b=fDKD77pq42Q0bH3UDaEYEG3A1mGdTA1k2GsAKl1p7JQvLGJ2XgIV69LqoVgarOOoNIHcp8QezPtfNmLmX61HKhartHcVImbYj26Tbh9lg2BOcb6PwOPGlPs7k9EWcX3QplOxUCZFFEgDMWLpRQqxfYGk4s9NQYWLhini85HKn7g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712764430; c=relaxed/simple; bh=SqPe3DfzT/ltHcfMna2d1NH1tRD4LDibXZWmRZyVL5M=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ZWxqRwH/aauH6TL20Tdz631RYFiNQtV120bNi02j9+vwkACT7yc0J8jHBHc9d+qX9SzT2oYm+0e2dSFZif6IbSHIJBBOvw9lzXevpVhD8o43dvjiC9aZn/rkCP7MORd1IqCmHpJGdbCkGjGJq9bffxEqLqv4b1F4wiIz3LjSi6A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AYIsoepc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C0E0C433C7; Wed, 10 Apr 2024 15:53:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712764429; bh=SqPe3DfzT/ltHcfMna2d1NH1tRD4LDibXZWmRZyVL5M=; h=From:To:Cc:Subject:Date:From; b=AYIsoepcYFkCZZq3EohWBeJd6LXBDaGTUpupVmhLuy1ajqgKPH7whwY/7a01lO2lq HnmQwa2/vD5YObh9yDPklhFHaVk3b/1C7+CQUkHueHcA79O2M95sB6oKzc63CjLpby uUmyvpe1VdyKfiD9MjMDiwN5qxRKb7leyUysWMtvDxlmvBUILreKwYxMtwuL7oeIli Hu4vTmGHZqfg3IR5NL2ZHQ0OaSVO9JxpnCoGoRrIzvuOaxQTncI2eOZaUVLWueqmU5 KGEjyaaSZ9CdIuYvM0Rz3Gu+AB0Jr0bonCHbmEXkLawTc0rLJS95/aUTI39/GjV8ry pBRCsUdlIaazw== From: Krzysztof Kozlowski To: Michael Turquette , Stephen Boyd , Paul Walmsley , Samuel Holland , linux-clk@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] clk: sifive: prci: fix module autoloading Date: Wed, 10 Apr 2024 17:53:42 +0200 Message-Id: <20240410155342.224061-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/sifive/sifive-prci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/sifive/sifive-prci.c b/drivers/clk/sifive/sifive-prci.c index 25b8e1a80ddc..700a1be9ec47 100644 --- a/drivers/clk/sifive/sifive-prci.c +++ b/drivers/clk/sifive/sifive-prci.c @@ -611,6 +611,7 @@ static const struct of_device_id sifive_prci_of_match[] = { {.compatible = "sifive,fu740-c000-prci", .data = &prci_clk_fu740}, {} }; +MODULE_DEVICE_TABLE(of, sifive_prci_of_match); static struct platform_driver sifive_prci_driver = { .driver = { -- 2.34.1