diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2012-10-12 03:51:19 -0400 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2012-11-27 03:49:33 -0500 |
commit | f190a50c49aae58efa76729bfe2686bb79973171 (patch) | |
tree | 8ebc9ce9b704d8cbbb127602a4345df2a0621b5e | |
parent | d8c4386d16160fba617dbe2f65906e20e865519f (diff) |
can: cc770_platform: add MODULE_ALIAS and MODULE_DEVICE_TABLE
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>
-rw-r--r-- | drivers/net/can/cc770/cc770_platform.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/can/cc770/cc770_platform.c b/drivers/net/can/cc770/cc770_platform.c index 688371cda37a..3da6cbb542ae 100644 --- a/drivers/net/can/cc770/cc770_platform.c +++ b/drivers/net/can/cc770/cc770_platform.c | |||
@@ -60,6 +60,7 @@ | |||
60 | MODULE_AUTHOR("Wolfgang Grandegger <wg@grandegger.com>"); | 60 | MODULE_AUTHOR("Wolfgang Grandegger <wg@grandegger.com>"); |
61 | MODULE_DESCRIPTION("Socket-CAN driver for CC770 on the platform bus"); | 61 | MODULE_DESCRIPTION("Socket-CAN driver for CC770 on the platform bus"); |
62 | MODULE_LICENSE("GPL v2"); | 62 | MODULE_LICENSE("GPL v2"); |
63 | MODULE_ALIAS("platform:" DRV_NAME); | ||
63 | 64 | ||
64 | #define CC770_PLATFORM_CAN_CLOCK 16000000 | 65 | #define CC770_PLATFORM_CAN_CLOCK 16000000 |
65 | 66 | ||
@@ -258,6 +259,7 @@ static struct of_device_id __devinitdata cc770_platform_table[] = { | |||
258 | {.compatible = "intc,82527"}, /* AN82527 from Intel CP */ | 259 | {.compatible = "intc,82527"}, /* AN82527 from Intel CP */ |
259 | {}, | 260 | {}, |
260 | }; | 261 | }; |
262 | MODULE_DEVICE_TABLE(of, cc770_platform_table); | ||
261 | 263 | ||
262 | static struct platform_driver cc770_platform_driver = { | 264 | static struct platform_driver cc770_platform_driver = { |
263 | .driver = { | 265 | .driver = { |