diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2012-10-04 04:55:35 -0400 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2012-11-27 03:49:33 -0500 |
commit | 4358a9dc94cd70fa88797c87ed911bc8d866f37d (patch) | |
tree | 3ea1430e8e8390c25e649e553f00f1bd6c241059 /drivers/net/can | |
parent | f190a50c49aae58efa76729bfe2686bb79973171 (diff) |
can: flexcan: add MODULE_DEVICE_TABLE
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>
Diffstat (limited to 'drivers/net/can')
-rw-r--r-- | drivers/net/can/flexcan.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/can/flexcan.c b/drivers/net/can/flexcan.c index a412bf6d73ef..9a17965e00fd 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[] = { | |||
979 | { .compatible = "fsl,imx6q-flexcan", .data = &fsl_imx6q_devtype_data, }, | 979 | { .compatible = "fsl,imx6q-flexcan", .data = &fsl_imx6q_devtype_data, }, |
980 | { /* sentinel */ }, | 980 | { /* sentinel */ }, |
981 | }; | 981 | }; |
982 | MODULE_DEVICE_TABLE(of, flexcan_of_match); | ||
982 | 983 | ||
983 | static const struct platform_device_id flexcan_id_table[] = { | 984 | static const struct platform_device_id flexcan_id_table[] = { |
984 | { .name = "flexcan", .driver_data = (kernel_ulong_t)&fsl_p1010_devtype_data, }, | 985 | { .name = "flexcan", .driver_data = (kernel_ulong_t)&fsl_p1010_devtype_data, }, |
985 | { /* sentinel */ }, | 986 | { /* sentinel */ }, |
986 | }; | 987 | }; |
988 | MODULE_DEVICE_TABLE(platform, flexcan_id_table); | ||
987 | 989 | ||
988 | static int __devinit flexcan_probe(struct platform_device *pdev) | 990 | static int __devinit flexcan_probe(struct platform_device *pdev) |
989 | { | 991 | { |