Commit 3dfcb4f5 authored by David S. Miller's avatar David S. Miller

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: default avatarDavid S. Miller <davem@davemloft.net>
parents 67b11e2e 0822b43e
...@@ -256,6 +256,7 @@ static const struct of_device_id b53_mmap_of_table[] = { ...@@ -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,
......
...@@ -1158,6 +1158,7 @@ static const struct of_device_id bcm_sf2_of_match[] = { ...@@ -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,
......
...@@ -1358,6 +1358,7 @@ static const struct of_device_id nb8800_dt_ids[] = { ...@@ -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)
{ {
......
...@@ -669,6 +669,7 @@ static const struct of_device_id nps_enet_dt_ids[] = { ...@@ -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,
......
...@@ -2761,6 +2761,7 @@ static const struct of_device_id g_dsaf_match[] = { ...@@ -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,
......
...@@ -563,6 +563,7 @@ static const struct of_device_id hns_mdio_match[] = { ...@@ -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 },
......
...@@ -575,6 +575,7 @@ static const struct of_device_id emac_dt_match[] = { ...@@ -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[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment