[PATCH 5/5] fixup! net: eqos: Rockchip support

Ahmad Fatoum a.fatoum at pengutronix.de
Wed Jun 9 01:55:12 PDT 2021


Make drvinfo/debug initcalls more useful by using names featuring the
driver's variant.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 drivers/net/designware_rockchip.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/net/designware_rockchip.c b/drivers/net/designware_rockchip.c
index fb37243f6993..413b12739aa7 100644
--- a/drivers/net/designware_rockchip.c
+++ b/drivers/net/designware_rockchip.c
@@ -326,12 +326,12 @@ static struct eqos_ops rk_gmac_ops = {
 	.config_mac = EQOS_MAC_RXQ_CTRL0_RXQ0EN_ENABLED_AV,
 };
 
-static int dwc_ether_probe(struct device_d *dev)
+static int rk_gmac_probe(struct device_d *dev)
 {
 	return eqos_probe(dev, &rk_gmac_ops, xzalloc(sizeof(struct eqos_rk_gmac)));
 }
 
-static __maybe_unused struct of_device_id dwc_ether_compatible[] = {
+static __maybe_unused struct of_device_id rk_gmac_compatible[] = {
 	{
 		.compatible = "rockchip,rk3568-gmac",
 		.data = &rk3568_ops,
@@ -340,10 +340,10 @@ static __maybe_unused struct of_device_id dwc_ether_compatible[] = {
 	}
 };
 
-static struct driver_d dwc_ether_driver = {
-	.name = "designware_eqos",
-	.probe = dwc_ether_probe,
+static struct driver_d rk_gmac_driver = {
+	.name = "eqos-rockchip",
+	.probe = rk_gmac_probe,
 	.remove = eqos_remove,
-	.of_compatible = DRV_OF_COMPAT(dwc_ether_compatible),
+	.of_compatible = DRV_OF_COMPAT(rk_gmac_compatible),
 };
-device_platform_driver(dwc_ether_driver);
+device_platform_driver(rk_gmac_driver);
-- 
2.29.2




More information about the barebox mailing list