From: Marc Kleine-Budde <mkl@pengutronix.de>
To: linux-can@vger.kernel.org
Cc: Marc Kleine-Budde <mkl@pengutronix.de>
Subject: [PATCH 7/8] can: c_can_platform: add MODULE_DEVICE_TABLE
Date: Thu, 22 Nov 2012 13:19:49 +0100 [thread overview]
Message-ID: <1353586790-30791-8-git-send-email-mkl@pengutronix.de> (raw)
In-Reply-To: <1353586790-30791-1-git-send-email-mkl@pengutronix.de>
This patch adds a MODULE_DEVICE_TABLE for the of and platform bindings, so that
the module can be loaded automatically by udev.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
drivers/net/can/c_can/c_can_platform.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/can/c_can/c_can_platform.c b/drivers/net/can/c_can/c_can_platform.c
index 75c3f47..0044fd8 100644
--- a/drivers/net/can/c_can/c_can_platform.c
+++ b/drivers/net/can/c_can/c_can_platform.c
@@ -97,12 +97,14 @@ static struct platform_device_id c_can_id_table[] = {
}, {
}
};
+MODULE_DEVICE_TABLE(platform, c_can_id_table);
static const struct of_device_id c_can_of_table[] = {
{ .compatible = "bosch,c_can", .data = &c_can_id_table[BOSCH_C_CAN] },
{ .compatible = "bosch,d_can", .data = &c_can_id_table[BOSCH_D_CAN] },
{ /* sentinel */ },
};
+MODULE_DEVICE_TABLE(of, c_can_of_table);
static int __devinit c_can_plat_probe(struct platform_device *pdev)
{
--
1.7.10.4
next prev parent reply other threads:[~2012-11-22 19:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-22 12:19 [PATCH 0/8] can: add MODULE_ALIAS and MODULE_DEVICE_TABLE Marc Kleine-Budde
2012-11-22 12:19 ` [PATCH 1/8] can: bfin_can: add MODULE_ALIAS Marc Kleine-Budde
2012-11-22 12:19 ` [PATCH 2/8] can: ti_hecc: " Marc Kleine-Budde
2012-11-22 14:03 ` Jan Lübbe
2012-11-22 12:19 ` [PATCH 3/8] can: sja1000_platform: " Marc Kleine-Budde
2012-11-22 12:19 ` [PATCH 4/8] can: cc770_platform: add MODULE_ALIAS and MODULE_DEVICE_TABLE Marc Kleine-Budde
2012-11-22 12:19 ` [PATCH 5/8] can: flexcan: add MODULE_DEVICE_TABLE Marc Kleine-Budde
2012-11-22 12:19 ` [PATCH 6/8] can: at91_can: " Marc Kleine-Budde
2012-11-22 12:19 ` Marc Kleine-Budde [this message]
2012-11-22 12:19 ` [PATCH 8/8] can: mpc5xxx_can: " Marc Kleine-Budde
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=1353586790-30791-8-git-send-email-mkl@pengutronix.de \
--to=mkl@pengutronix.de \
--cc=linux-can@vger.kernel.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 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).