From: Srinivas KANDAGATLA <srinivas.kandagatla@st.com>
To: grant.likely@secretlab.ca, rob.herring@calxeda.com,
viresh.linux@gmail.com, g.liakhovetski@gmx.de,
ian@mnementh.co.uk, thomas.ab@samsung.com
Cc: srinivas.kandagatla@st.com, spear-devel@list.st.com,
linux-mmc@vger.kernel.org, devicetree-discuss@lists.ozlabs.org
Subject: [RFC RESEND PATCH 3.7.0-rc4 3/4] mmc:sdhci-spear: use of_simple_module_id_table macro.
Date: Fri, 16 Nov 2012 13:28:02 +0000 [thread overview]
Message-ID: <1353072482-22612-1-git-send-email-srinivas.kandagatla@st.com> (raw)
From: Srinivas Kandagatla <srinivas.kandagatla@st.com>
This patch uses of_simple_module_id_table macro to replace code like:
static struct of_device_id xxx_of_match[] = {
{ .compatible = "yyy,zzz" },
{ },
};
MODULE_DEVICE_TABLE(of, xxx_of_match);
with
of_simple_module_id_table(xxx_of_match, "yyy,zzz");
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
---
drivers/mmc/host/sdhci-spear.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/drivers/mmc/host/sdhci-spear.c b/drivers/mmc/host/sdhci-spear.c
index 6be89c0..accf4f4 100644
--- a/drivers/mmc/host/sdhci-spear.c
+++ b/drivers/mmc/host/sdhci-spear.c
@@ -320,13 +320,7 @@ static int sdhci_resume(struct device *dev)
static SIMPLE_DEV_PM_OPS(sdhci_pm_ops, sdhci_suspend, sdhci_resume);
-#ifdef CONFIG_OF
-static const struct of_device_id sdhci_spear_id_table[] = {
- { .compatible = "st,spear300-sdhci" },
- {}
-};
-MODULE_DEVICE_TABLE(of, sdhci_spear_id_table);
-#endif
+of_simple_module_id_table(sdhci_spear_id_table, "st,spear300-sdhci");
static struct platform_driver sdhci_driver = {
.driver = {
--
1.7.0.4
reply other threads:[~2012-11-16 13:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1353072482-22612-1-git-send-email-srinivas.kandagatla@st.com \
--to=srinivas.kandagatla@st.com \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=g.liakhovetski@gmx.de \
--cc=grant.likely@secretlab.ca \
--cc=ian@mnementh.co.uk \
--cc=linux-mmc@vger.kernel.org \
--cc=rob.herring@calxeda.com \
--cc=spear-devel@list.st.com \
--cc=thomas.ab@samsung.com \
--cc=viresh.linux@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).