Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4358a9dc authored by Marc Kleine-Budde's avatar Marc Kleine-Budde
Browse files

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: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent f190a50c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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)
{