Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp88653lqb; Tue, 4 Jun 2024 06:06:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWPCd4OgQHifu4JyPNRTDgQ3G/51reJAJ0scEDwMv7wV4dplzn0aRKsooKNbu9KEpp/ggwCNjnbrT91osASnQQclhbqVJXnyQrKPd2/RQ== X-Google-Smtp-Source: AGHT+IFXC1y0E93PB0Aereth5sB/5ULW4I/qQWsyotBcIwWk5rwc4MO4D5wOUy8zHjUsnvwoRoKb X-Received: by 2002:a17:906:e0c:b0:a68:a137:d041 with SMTP id a640c23a62f3a-a68a137d0a2mr603982866b.12.1717506365206; Tue, 04 Jun 2024 06:06:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717506365; cv=pass; d=google.com; s=arc-20160816; b=UqIafa56xrmjkSkdNbuaqzgvjzKj42FO5T26ZnEhWguVrQ8n9iZmOcpGh75sSwB2Ee cGZE7VKR6SpWGLeAnYXY45q7aNjjGka54QlTbQ1tY8g/SXkWfHIkjB4g8+ONgFz2AoJp 22s1l2iP2Bo7DZixgp8Yeadl46Ez5d4TYdrt01gPd+jGAcsuU0DEonA5+mpfg8tzOLCb 6COOFhnjMYEShZMy3umZXu1NeOEuBW4bAypsS4m/POTU3Xb6adtlfr0MdNaFDSjwknjq ZT9XtZciM0s4hf/u5nqddhdtClH0B/yk0GpC1x29YsnuEs2iFc8AXEwxaXBXCHbh0Z/Q CsLQ== 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=LcPd0EvGWInISD65KsuyYkyeorSvJUBJhZgfuheFWcQ=; fh=pNBVDnSRr49npKiA1hfW/r3JnBVBskEPEY+lbU7cwKc=; b=PQMlmk8FCG9mCx1CpcuOi9hiUIa1aq8a7kXT/Wx0td71bEP1oXi1bTERXWyqLF0mUx tdibiO1mGZ1i+MHvdWJsSpI9KTHMLWwg+v3oD1YcxZjWAI+u6UTO5aqG+eyRkysNRGnK f3zkryrrvNT4MbzCIi+GJFCqjBu3/BZ//tmmgcXzJMRSRejO1oAvSrOq3WSt1XZA85pd PM+/P0RyRIMO0AWdfXvipEi+t1AiKMUHeRmB96rj/4M/xshXhQTJDPNnPNaqsNErYBMO zP/i5F/vmPj9yDoJrSHIxVlp5GFXQbAqiFbq0hmx6V/MdF/Bo0w30MOXMEeIUh/Y1ZhL 109w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IHhxRvIr; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-200668-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200668-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 a640c23a62f3a-a6914f5bb03si177604466b.292.2024.06.04.06.06.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 06:06:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200668-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=@linaro.org header.s=google header.b=IHhxRvIr; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-200668-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200668-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 AEFD01F24289 for ; Tue, 4 Jun 2024 13:06:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A2A31146A89; Tue, 4 Jun 2024 13:05:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="IHhxRvIr" Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 307F1144D2E for ; Tue, 4 Jun 2024 13:05:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717506342; cv=none; b=fTvvOQ+sxpAu8qkZyawPIbU8lR7fhuDqj3l4rWJVBE95m7iT4kc95WopL3RA3igoVVobLOBV9FQ0De14aaddB4o1EbTmyzSuq2PB8iE8Yqty44vm+2aB7JA2kt15Woiuj4ft6uksz4xdAaw/Jior8CwhXPRvxjqbbIq4zu1+gDk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717506342; c=relaxed/simple; bh=y/0k4cj1U/HXhi7gEv84nKFSEhX46PQFmUke6alZTKM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lF8IKu11PnKxfwp5uM31HgeP8G5YpMzYaLFEc2P5C2y6DY9ZX16muiaLYwziu4WNdfWVeM0ZnU0lM2rN/WMXiEgnGsKBEgsL3skAU6g9EbsebiySEUMoYw8evG+zc6Oz4CPq/6bv+2CEMjxjKV56Blb2p0lPBClW6SkRvjA6Gpc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=IHhxRvIr; arc=none smtp.client-ip=209.85.208.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lj1-f171.google.com with SMTP id 38308e7fff4ca-2eaafda3b5cso10477261fa.3 for ; Tue, 04 Jun 2024 06:05:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717506339; x=1718111139; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=LcPd0EvGWInISD65KsuyYkyeorSvJUBJhZgfuheFWcQ=; b=IHhxRvIrT+gMz4JDOEds6mhWWOgLigMBF0gYRpdDTkflPseKVX3bRtI+uTmxpCMFQ/ nvO0xxZcEgo26yqvsjb4w0IvQqutin63RV1NUV6rAI8FyECDmcJHPUcoWnv+2nGovAkw S3cejlEnzUNMwyKDUZ2NMP4csaaz+nX4mCYFHcSaK2pZJQMACxylJzPHbS3q4LMYbISF g5Offha7DH3SXcRjYcjSe7aqWZyGJ9Qohg/92yi9TUIP8SB1VLyRXNPCVQ0z93qinEb8 W91dsjCvvYoHom6C5bxCzqnrCTEUg2gmcTdMNNqfr0BY0+uA4bD2xmKtxCQbyTmGu92I UztA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717506339; x=1718111139; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LcPd0EvGWInISD65KsuyYkyeorSvJUBJhZgfuheFWcQ=; b=NsbyytmQAd03cO9sgN8nI+N+c/AlKARUq+QTn5AjKyogLNmYBPNj+v8HJ4NP+BTPY9 40MeQy3wrIQ42biA6NTP49f5OlOFLO5HmAh8+1opTHI/+6TX6tMRTfPUta7eipOqEDxQ jHRU/8iKPYAC+p2YBDKPlVz3lDpIM5aZry4i3IRVMzU3Zv+jhMOuAHGDJo3LLNj4m73V Y8qzasBEpat1IB/pQJ3oOPKwHVEsBHBA3WZ2pwkSpCZhXldLYVF6q00arcBY3AdvJ9fk onXpuRz9fYTusX4iSKhoH1yilhUBa02nNn1vbaOJaR2JFuHj3abFcJGiAexeIAeRGwAh BnAQ== X-Forwarded-Encrypted: i=1; AJvYcCUuhcBN8cg1SENVvvQbFUPmsYUMjtBxfKxD6velHYsisBOwItHTEILZKZCbnWcbKpAKbZCEHT5Aw0v+KdaqfpH41UtyjPdpwTyUwntr X-Gm-Message-State: AOJu0YxSRztrI32DSUbpRDSTPwR7g6q7Xq+J0LGv8IihGrQDMS9rFEh3 KjrGD+OsrmUOyZiAj7A4dmBxeDYyZjAtLvrfYJO/cXWBhPfsYXJJAp06vh76k7Y= X-Received: by 2002:ac2:59c9:0:b0:52b:84bd:345e with SMTP id 2adb3069b0e04-52b8970c011mr7177186e87.43.1717506339216; Tue, 04 Jun 2024 06:05:39 -0700 (PDT) Received: from krzk-bin.. ([110.93.11.116]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42148ae3262sm29798955e9.7.2024.06.04.06.05.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 06:05:38 -0700 (PDT) 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: [RESEND PATCH] clk: sifive: prci: fix module autoloading Date: Tue, 4 Jun 2024 15:05:31 +0200 Message-ID: <20240604130531.170371-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Krzysztof Kozlowski 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 Reviewed-by: Samuel Holland --- 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 b32a59fe55e7..caba0400f8a2 100644 --- a/drivers/clk/sifive/sifive-prci.c +++ b/drivers/clk/sifive/sifive-prci.c @@ -603,6 +603,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.43.0