From: Marc Kleine-Budde <mkl@pengutronix.de>
To: linux-can@vger.kernel.org
Cc: Marc Kleine-Budde <mkl@pengutronix.de>
Subject: [PATCH 5/8] can: flexcan: add MODULE_DEVICE_TABLE
Date: Thu, 22 Nov 2012 13:19:47 +0100 [thread overview]
Message-ID: <1353586790-30791-6-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/flexcan.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/can/flexcan.c b/drivers/net/can/flexcan.c
index a412bf6..9a17965 100644
--- a/drivers/net/can/flexcan.c
+++ b/drivers/net/can/flexcan.c
@@ -979,11 +979,13 @@ static const struct of_device_id flexcan_of_match[] = {
{ .compatible = "fsl,imx6q-flexcan", .data = &fsl_imx6q_devtype_data, },
{ /* sentinel */ },
};
+MODULE_DEVICE_TABLE(of, flexcan_of_match);
static const struct platform_device_id flexcan_id_table[] = {
{ .name = "flexcan", .driver_data = (kernel_ulong_t)&fsl_p1010_devtype_data, },
{ /* sentinel */ },
};
+MODULE_DEVICE_TABLE(platform, flexcan_id_table);
static int __devinit flexcan_probe(struct platform_device *pdev)
{
--
1.7.10.4
next prev parent reply other threads:[~2012-11-22 19:20 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 ` Marc Kleine-Budde [this message]
2012-11-22 12:19 ` [PATCH 6/8] can: at91_can: add MODULE_DEVICE_TABLE Marc Kleine-Budde
2012-11-22 12:19 ` [PATCH 7/8] can: c_can_platform: " Marc Kleine-Budde
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-6-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).