Browse Source

Merge branch 'net-driver-autoload'

Javier Martinez Canillas says:

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

I noticed that module autoload won't be working in a bunch of platform
drivers in the net subsystem and this patch series contains the fixes.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller 8 years ago
parent
commit
3dfcb4f56f

+ 1 - 0
drivers/net/dsa/b53/b53_mmap.c

@@ -256,6 +256,7 @@ static const struct of_device_id b53_mmap_of_table[] = {
 	{ .compatible = "brcm,bcm63xx-switch" },
 	{ .compatible = "brcm,bcm63xx-switch" },
 	{ /* sentinel */ },
 	{ /* sentinel */ },
 };
 };
+MODULE_DEVICE_TABLE(of, b53_mmap_of_table);
 
 
 static struct platform_driver b53_mmap_driver = {
 static struct platform_driver b53_mmap_driver = {
 	.probe = b53_mmap_probe,
 	.probe = b53_mmap_probe,

+ 1 - 0
drivers/net/dsa/bcm_sf2.c

@@ -1158,6 +1158,7 @@ static const struct of_device_id bcm_sf2_of_match[] = {
 	{ .compatible = "brcm,bcm7445-switch-v4.0" },
 	{ .compatible = "brcm,bcm7445-switch-v4.0" },
 	{ /* sentinel */ },
 	{ /* sentinel */ },
 };
 };
+MODULE_DEVICE_TABLE(of, bcm_sf2_of_match);
 
 
 static struct platform_driver bcm_sf2_driver = {
 static struct platform_driver bcm_sf2_driver = {
 	.probe	= bcm_sf2_sw_probe,
 	.probe	= bcm_sf2_sw_probe,

+ 1 - 0
drivers/net/ethernet/aurora/nb8800.c

@@ -1358,6 +1358,7 @@ static const struct of_device_id nb8800_dt_ids[] = {
 	},
 	},
 	{ }
 	{ }
 };
 };
+MODULE_DEVICE_TABLE(of, nb8800_dt_ids);
 
 
 static int nb8800_probe(struct platform_device *pdev)
 static int nb8800_probe(struct platform_device *pdev)
 {
 {

+ 1 - 0
drivers/net/ethernet/ezchip/nps_enet.c

@@ -669,6 +669,7 @@ static const struct of_device_id nps_enet_dt_ids[] = {
 	{ .compatible = "ezchip,nps-mgt-enet" },
 	{ .compatible = "ezchip,nps-mgt-enet" },
 	{ /* Sentinel */ }
 	{ /* Sentinel */ }
 };
 };
+MODULE_DEVICE_TABLE(of, nps_enet_dt_ids);
 
 
 static struct platform_driver nps_enet_driver = {
 static struct platform_driver nps_enet_driver = {
 	.probe = nps_enet_probe,
 	.probe = nps_enet_probe,

+ 1 - 0
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c

@@ -2761,6 +2761,7 @@ static const struct of_device_id g_dsaf_match[] = {
 	{.compatible = "hisilicon,hns-dsaf-v2"},
 	{.compatible = "hisilicon,hns-dsaf-v2"},
 	{}
 	{}
 };
 };
+MODULE_DEVICE_TABLE(of, g_dsaf_match);
 
 
 static struct platform_driver g_dsaf_driver = {
 static struct platform_driver g_dsaf_driver = {
 	.probe = hns_dsaf_probe,
 	.probe = hns_dsaf_probe,

+ 1 - 0
drivers/net/ethernet/hisilicon/hns_mdio.c

@@ -563,6 +563,7 @@ static const struct of_device_id hns_mdio_match[] = {
 	{.compatible = "hisilicon,hns-mdio"},
 	{.compatible = "hisilicon,hns-mdio"},
 	{}
 	{}
 };
 };
+MODULE_DEVICE_TABLE(of, hns_mdio_match);
 
 
 static const struct acpi_device_id hns_mdio_acpi_match[] = {
 static const struct acpi_device_id hns_mdio_acpi_match[] = {
 	{ "HISI0141", 0 },
 	{ "HISI0141", 0 },

+ 1 - 0
drivers/net/ethernet/qualcomm/emac/emac.c

@@ -575,6 +575,7 @@ static const struct of_device_id emac_dt_match[] = {
 	},
 	},
 	{}
 	{}
 };
 };
+MODULE_DEVICE_TABLE(of, emac_dt_match);
 
 
 #if IS_ENABLED(CONFIG_ACPI)
 #if IS_ENABLED(CONFIG_ACPI)
 static const struct acpi_device_id emac_acpi_match[] = {
 static const struct acpi_device_id emac_acpi_match[] = {