From: Marc Kleine-Budde <mkl@pengutronix.de>
To: linux-can@vger.kernel.org
Cc: Marc Kleine-Budde <mkl@pengutronix.de>
Subject: [PATCH 4/8] can: cc770_platform: add MODULE_ALIAS and MODULE_DEVICE_TABLE
Date: Thu, 22 Nov 2012 13:19:46 +0100 [thread overview]
Message-ID: <1353586790-30791-5-git-send-email-mkl@pengutronix.de> (raw)
In-Reply-To: <1353586790-30791-1-git-send-email-mkl@pengutronix.de>
This patch adds a MODULE_ALIAS for the platform bindings and a
MODULE_DEVICE_TABLE for of bindings, so that the module can be loaded
automatically by udev.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
drivers/net/can/cc770/cc770_platform.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/can/cc770/cc770_platform.c b/drivers/net/can/cc770/cc770_platform.c
index 688371c..3da6cbb 100644
--- a/drivers/net/can/cc770/cc770_platform.c
+++ b/drivers/net/can/cc770/cc770_platform.c
@@ -60,6 +60,7 @@
MODULE_AUTHOR("Wolfgang Grandegger <wg@grandegger.com>");
MODULE_DESCRIPTION("Socket-CAN driver for CC770 on the platform bus");
MODULE_LICENSE("GPL v2");
+MODULE_ALIAS("platform:" DRV_NAME);
#define CC770_PLATFORM_CAN_CLOCK 16000000
@@ -258,6 +259,7 @@ static struct of_device_id __devinitdata cc770_platform_table[] = {
{.compatible = "intc,82527"}, /* AN82527 from Intel CP */
{},
};
+MODULE_DEVICE_TABLE(of, cc770_platform_table);
static struct platform_driver cc770_platform_driver = {
.driver = {
--
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 ` Marc Kleine-Budde [this message]
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 ` [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-5-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).