From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: sha@pengutronix.de, Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH 5/5] fixup! net: eqos: Rockchip support
Date: Wed, 9 Jun 2021 10:55:12 +0200 [thread overview]
Message-ID: <20210609085512.3865-6-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20210609085512.3865-1-a.fatoum@pengutronix.de>
Make drvinfo/debug initcalls more useful by using names featuring the
driver's variant.
Signed-off-by: Ahmad Fatoum <a.fatoum@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
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2021-06-09 9:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-09 8:55 [PATCH 0/5] fixups for Designware EQOS MAC " Ahmad Fatoum
2021-06-09 8:55 ` [PATCH 1/5] fixup! net: eqos: " Ahmad Fatoum
2021-06-09 8:55 ` [PATCH 2/5] " Ahmad Fatoum
2021-06-09 11:33 ` Sascha Hauer
2021-06-09 8:55 ` [PATCH 3/5] " Ahmad Fatoum
2021-06-09 8:55 ` [PATCH 4/5] " Ahmad Fatoum
2021-06-09 8:55 ` Ahmad Fatoum [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210609085512.3865-6-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=sha@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox