mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
net: macb: include arch/clk.h only when necessary
It does not exist in my setup (an on-going arm64 SoC), and removing it does not cause any missing declaration, but some code called when CONFIG_CLK is missing calls get_macb_pclk_rate, which is only defined in arch/arm/mach-at91/include/mach/clk.h Signed-off-by: Christian DREHER <christian.dreher@nanoxplore.com>
This commit is contained in:
committed by
Jerome Forissier
parent
52309be1d5
commit
9e23095298
@@ -38,9 +38,13 @@
|
||||
#include <linux/mii.h>
|
||||
#include <asm/io.h>
|
||||
#include <linux/dma-mapping.h>
|
||||
#include <asm/arch/clk.h>
|
||||
#include <linux/errno.h>
|
||||
|
||||
/* Without CLK, we rely on the arch definition */
|
||||
#if !defined(CONFIG_CLK)
|
||||
#include <asm/arch/clk.h>
|
||||
#endif
|
||||
|
||||
#include "macb.h"
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
Reference in New Issue
Block a user