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]> --- 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" -- 2.51.0

