Kaynağa Gözat

net/fsl_pq_mdio: Fix asm/ucc.h compile error for ARM

The UCC specific code included in fsl_pq_mdio.c (with
function calls from asm/ucc.h) is already guarded
by these config options, so this ARM build fix only
provides consistency with the rest UCC specific code.

Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Claudiu Manoil 11 yıl önce
ebeveyn
işleme
9a4cbd53b8
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      drivers/net/ethernet/freescale/fsl_pq_mdio.c

+ 2 - 0
drivers/net/ethernet/freescale/fsl_pq_mdio.c

@@ -28,7 +28,9 @@
 #include <linux/of_device.h>
 
 #include <asm/io.h>
+#if IS_ENABLED(CONFIG_UCC_GETH)
 #include <asm/ucc.h>	/* for ucc_set_qe_mux_mii_mng() */
+#endif
 
 #include "gianfar.h"