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 <denorl2...@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


Reply via email to