[PATCH 2/2] net: macb: remove const from dev pointer in macb_device

Denis Orlov denorl2009 at gmail.com
Sun Jun 4 14:45:02 PDT 2023


Otherwise, it leads to a bunch of warnings on passing those pointers to
dma_*() functions. As every other driver seem to be having non-const dev
pointers in their private structs, do the same here.

Signed-off-by: Denis Orlov <denorl2009 at gmail.com>
---
 drivers/net/macb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index 4b89c59580..128ada7268 100644
--- a/drivers/net/macb.c
+++ b/drivers/net/macb.c
@@ -75,7 +75,7 @@ struct macb_device {
 	int			phy_addr;
 
 	struct clk		*pclk, *hclk, *txclk, *rxclk;
-	const struct device	*dev;
+	struct device		*dev;
 	struct eth_device	netdev;
 
 	phy_interface_t		interface;
-- 
2.41.0




More information about the barebox mailing list