From: Axel Lin <axel.lin@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Harald Welte <laforge@gnumonks.org>,
Samuel Ortiz <sameo@linux.intel.com>
Subject: [PATCH 2/3] mfd: pcf50633-core: add MODULE_DEVICE_TABLE
Date: Mon, 28 Feb 2011 14:33:12 +0800 [thread overview]
Message-ID: <1298874792.5562.4.camel@mola> (raw)
In-Reply-To: <1298874735.5562.3.camel@mola>
The device table is required to load modules based on modaliases.
After adding the MODULE_DEVICE_TABLE, below entries will be added to
modules.alias:
alias i2c:pcf50633 pcf50633
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/mfd/pcf50633-core.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/mfd/pcf50633-core.c b/drivers/mfd/pcf50633-core.c
index 2640e4d..c1306ed 100644
--- a/drivers/mfd/pcf50633-core.c
+++ b/drivers/mfd/pcf50633-core.c
@@ -360,6 +360,7 @@ static struct i2c_device_id pcf50633_id_table[] = {
{"pcf50633", 0x73},
{/* end of list */}
};
+MODULE_DEVICE_TABLE(i2c, pcf50633_id_table);
static struct i2c_driver pcf50633_driver = {
.driver = {
--
1.7.2
next prev parent reply other threads:[~2011-02-28 6:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-28 6:32 [PATCH 1/3] mfd: mc13xxx-core: add MODULE_DEVICE_TABLE Axel Lin
2011-02-28 6:33 ` Axel Lin [this message]
2011-02-28 8:45 ` [PATCH 2/3] mfd: pcf50633-core: " Harald Welte
2011-02-28 6:34 ` [PATCH 3/3] mfd: vx855: " Axel Lin
2011-02-28 15:29 ` Harald Welte
2011-02-28 7:49 ` [PATCH 1/3] mfd: mc13xxx-core: " Uwe Kleine-König
2011-03-02 10:10 ` Samuel Ortiz
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=1298874792.5562.4.camel@mola \
--to=axel.lin@gmail.com \
--cc=laforge@gnumonks.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sameo@linux.intel.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 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.