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

Commit 69c0c5b1 authored by Marc Kleine-Budde's avatar Marc Kleine-Budde
Browse files

can: c_can_platform: 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 09ca71ca
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -97,12 +97,14 @@ static struct platform_device_id c_can_id_table[] = {
	}, {
	}
};
MODULE_DEVICE_TABLE(platform, c_can_id_table);

static const struct of_device_id c_can_of_table[] = {
	{ .compatible = "bosch,c_can", .data = &c_can_id_table[BOSCH_C_CAN] },
	{ .compatible = "bosch,d_can", .data = &c_can_id_table[BOSCH_D_CAN] },
	{ /* sentinel */ },
};
MODULE_DEVICE_TABLE(of, c_can_of_table);

static int __devinit c_can_plat_probe(struct platform_device *pdev)
{