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

Commit a11d5585 authored by David S. Miller's avatar David S. Miller
Browse files

Merge branch 'net-of-autoload'

Luis de Bethencourt says:

====================
net: Fix module autoload for OF platform drivers

These patches add the missing MODULE_DEVICE_TABLE() for OF to export
the information so modules have the correct aliases built-in and
autoloading works correctly.

A longer explanation by Javier Canillas can be found here:
https://lkml.org/lkml/2015/7/30/519


====================

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parents 1f770c0a ebd8ebf0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -78,6 +78,7 @@ static const struct of_device_id emac_arc_dt_ids[] = {
	{ .compatible = "snps,arc-emac" },
	{ /* Sentinel */ }
};
MODULE_DEVICE_TABLE(of, emac_arc_dt_ids);

static struct platform_driver emac_arc_driver = {
	.probe = emac_arc_probe,
+1 −0
Original line number Diff line number Diff line
@@ -2079,6 +2079,7 @@ static const struct of_device_id bcm_sysport_of_match[] = {
	{ .compatible = "brcm,systemport" },
	{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(of, bcm_sysport_of_match);

static struct platform_driver bcm_sysport_driver = {
	.probe	= bcm_sysport_probe,
+1 −0
Original line number Diff line number Diff line
@@ -3155,6 +3155,7 @@ static const struct of_device_id bcmgenet_match[] = {
	{ .compatible = "brcm,genet-v4", .data = (void *)GENET_V4 },
	{ },
};
MODULE_DEVICE_TABLE(of, bcmgenet_match);

static int bcmgenet_probe(struct platform_device *pdev)
{
+1 −0
Original line number Diff line number Diff line
@@ -557,6 +557,7 @@ static const struct of_device_id match_table[] = {
	{ .compatible = "fsl,etsec-ptp" },
	{},
};
MODULE_DEVICE_TABLE(of, match_table);

static struct platform_driver gianfar_ptp_driver = {
	.driver = {
+1 −0
Original line number Diff line number Diff line
@@ -552,6 +552,7 @@ static const struct of_device_id moxart_mac_match[] = {
	{ .compatible = "moxa,moxart-mac" },
	{ }
};
MODULE_DEVICE_TABLE(of, moxart_mac_match);

static struct platform_driver moxart_mac_driver = {
	.probe	= moxart_mac_probe,