All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Pali Rohár" <pali@kernel.org>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>,
	Viresh Kumar <viresh.kumar@linaro.org>
Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 5/9] cpufreq: st: Add missing MODULE_DEVICE_TABLE
Date: Tue,  3 Nov 2020 16:11:35 +0100	[thread overview]
Message-ID: <20201103151139.29690-6-pali@kernel.org> (raw)
In-Reply-To: <20201103151139.29690-1-pali@kernel.org>

This patch adds missing MODULE_DEVICE_TABLE definition which generates
correct modalias for automatic loading of this cpufreq driver when it is
compiled as an external module.

Signed-off-by: Pali Rohár <pali@kernel.org>
Fixes: ab0ea257fc58d ("cpufreq: st: Provide runtime initialised driver for ST's platforms")
---
 drivers/cpufreq/sti-cpufreq.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/cpufreq/sti-cpufreq.c b/drivers/cpufreq/sti-cpufreq.c
index 4ac6fb23792a..c40d3d7d4ea4 100644
--- a/drivers/cpufreq/sti-cpufreq.c
+++ b/drivers/cpufreq/sti-cpufreq.c
@@ -292,6 +292,13 @@ static int sti_cpufreq_init(void)
 }
 module_init(sti_cpufreq_init);
 
+static const struct of_device_id __maybe_unused sti_cpufreq_of_match[] = {
+	{ .compatible = "st,stih407" },
+	{ .compatible = "st,stih410" },
+	{ },
+};
+MODULE_DEVICE_TABLE(of, sti_cpufreq_of_match);
+
 MODULE_DESCRIPTION("STMicroelectronics CPUFreq/OPP driver");
 MODULE_AUTHOR("Ajitpal Singh <ajitpal.singh@st.com>");
 MODULE_AUTHOR("Lee Jones <lee.jones@linaro.org>");
-- 
2.20.1


  parent reply	other threads:[~2020-11-03 15:13 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-03 15:11 [PATCH 0/9] cpufreq: Add missing modalias for tristate drivers Pali Rohár
2020-11-03 15:11 ` [PATCH 1/9] cpufreq: ap806: Add missing MODULE_DEVICE_TABLE Pali Rohár
2020-11-03 15:11 ` [PATCH 2/9] cpufreq: highbank: " Pali Rohár
2020-11-03 15:11 ` [PATCH 3/9] cpufreq: mediatek: " Pali Rohár
2020-11-03 15:11 ` [PATCH 4/9] cpufreq: qcom: " Pali Rohár
2020-11-03 15:11 ` Pali Rohár [this message]
2020-11-03 15:11 ` [PATCH 6/9] cpufreq: sun50i: " Pali Rohár
2020-11-10  2:41   ` Frank Lee
2020-11-03 15:11 ` [PATCH 7/9] cpufreq: loongson1: Add missing MODULE_ALIAS Pali Rohár
2020-11-03 15:11 ` [PATCH 8/9] cpufreq: scpi: " Pali Rohár
2020-11-03 15:11 ` [PATCH 9/9] cpufreq: vexpress-spc: " Pali Rohár
2020-11-09 14:18 ` [PATCH 0/9] cpufreq: Add missing modalias for tristate drivers Rafael J. Wysocki
2020-11-10  2:35   ` Viresh Kumar
2020-11-10 12:39     ` Rafael J. Wysocki
2020-11-11  6:01 ` Viresh Kumar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201103151139.29690-6-pali@kernel.org \
    --to=pali@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=rjw@rjwysocki.net \
    --cc=viresh.kumar@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.