aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2023-04-20 10:59:08 +0200
committerÁlvaro Fernández Rojas <noltari@gmail.com>2023-04-23 12:19:02 +0200
commitf6f4db6e4d156d9d0dacc9d19d4355dc284d6483 (patch)
treeb18f1045993987e476901ccaf196d40bc3843861 /target
parentb98955c623119eeafef48064b2cce92921a7f8db (diff)
downloadupstream-f6f4db6e4d156d9d0dacc9d19d4355dc284d6483.tar.gz
upstream-f6f4db6e4d156d9d0dacc9d19d4355dc284d6483.tar.bz2
upstream-f6f4db6e4d156d9d0dacc9d19d4355dc284d6483.zip
bmips: enet: add missing module functions
- Add missing MODULE_DEVICE_TABLE(). - Switch bcm6348-iudma to module_platform_driver(). - Add missing MODULE_AUTHOR, MODULE_DESCRIPTION, MODULE_LICENSE and MODULE_ALIAS. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target')
-rw-r--r--target/linux/bmips/files/drivers/net/ethernet/broadcom/bcm6348-enet.c12
-rw-r--r--target/linux/bmips/files/drivers/net/ethernet/broadcom/bcm6368-enetsw.c5
2 files changed, 14 insertions, 3 deletions
diff --git a/target/linux/bmips/files/drivers/net/ethernet/broadcom/bcm6348-enet.c b/target/linux/bmips/files/drivers/net/ethernet/broadcom/bcm6348-enet.c
index 2bd243089e..63841129a9 100644
--- a/target/linux/bmips/files/drivers/net/ethernet/broadcom/bcm6348-enet.c
+++ b/target/linux/bmips/files/drivers/net/ethernet/broadcom/bcm6348-enet.c
@@ -278,8 +278,9 @@ static const struct of_device_id bcm6348_iudma_of_match[] = {
{ .compatible = "brcm,bcm6338-iudma", },
{ .compatible = "brcm,bcm6348-iudma", },
{ .compatible = "brcm,bcm6358-iudma", },
- { /* sentinel */ },
+ { /* sentinel */ }
};
+MODULE_DEVICE_TABLE(of, bcm6348_emac_of_match);
static struct platform_driver bcm6348_iudma_driver = {
.driver = {
@@ -288,7 +289,7 @@ static struct platform_driver bcm6348_iudma_driver = {
},
.probe = bcm6348_iudma_probe,
};
-builtin_platform_driver(bcm6348_iudma_driver);
+module_platform_driver(bcm6348_iudma_driver);
/*
* BCM6348 Eternet MACs
@@ -1693,7 +1694,7 @@ static const struct of_device_id bcm6348_emac_of_match[] = {
{ .compatible = "brcm,bcm6338-emac", },
{ .compatible = "brcm,bcm6348-emac", },
{ .compatible = "brcm,bcm6358-emac", },
- { /* sentinel */ },
+ { /* sentinel */ }
};
MODULE_DEVICE_TABLE(of, bcm6348_emac_of_match);
@@ -1717,3 +1718,8 @@ int bcm6348_iudma_drivers_register(struct platform_device *pdev)
return ret;
}
+
+MODULE_AUTHOR("Álvaro Fernández Rojas <noltari@gmail.com>");
+MODULE_DESCRIPTION("BCM6348 Ethernet Controller Driver");
+MODULE_LICENSE("GPL v2");
+MODULE_ALIAS("platform:bcm6348-enet");
diff --git a/target/linux/bmips/files/drivers/net/ethernet/broadcom/bcm6368-enetsw.c b/target/linux/bmips/files/drivers/net/ethernet/broadcom/bcm6368-enetsw.c
index 124baee9b4..e200b99141 100644
--- a/target/linux/bmips/files/drivers/net/ethernet/broadcom/bcm6368-enetsw.c
+++ b/target/linux/bmips/files/drivers/net/ethernet/broadcom/bcm6368-enetsw.c
@@ -1130,3 +1130,8 @@ static struct platform_driver bcm6368_enetsw_driver = {
.remove = bcm6368_enetsw_remove,
};
module_platform_driver(bcm6368_enetsw_driver);
+
+MODULE_AUTHOR("Álvaro Fernández Rojas <noltari@gmail.com>");
+MODULE_DESCRIPTION("BCM6368 Ethernet Switch Controller Driver");
+MODULE_LICENSE("GPL v2");
+MODULE_ALIAS("platform:bcm6368-enetsw");