On 05/11/2025 17:44, Torsten Duwe wrote:
macb.c includes asm/arch/clk.h solely to declare get_macb_pclk_rate().
That function is platform specific and only required if CONFIG_CLK
is not set. In case the machine does not provide it, compilation fails
even when the MACB pclk is detected via the CLK framework.
Signed-off-by: Oleksii Moisieiev <[email protected]>
Reviewed-by: Volodymyr Babchuk <[email protected]>
Signed-off-by: Torsten Duwe <[email protected]>
Reviewed-by: Oleksii Moisieiev <[email protected]>
It seems you forgot my reviewed-by tag, anyway here it comes again :)
Reviewed-by: Matthias Brugger <[email protected]>
---
drivers/net/macb.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index cbf5f605518..a54a268036d 100644
--- a/drivers/net/macb.c
+++ b/drivers/net/macb.c
@@ -38,7 +38,9 @@
#include <linux/mii.h>
#include <asm/io.h>
#include <linux/dma-mapping.h>
+#ifndef CONFIG_CLK
#include <asm/arch/clk.h>
+#endif
#include <linux/errno.h>
#include "macb.h"