[OpenWrt-Devel] [Patch] fixes for ramips build in esw_rt3052.c

Recycler recycler at dev-tec.de
Fri Dec 11 18:52:55 EST 2015


In commit 930035f9fa98f438a71337f707fc43316318a1be there where a lot of 
changes in ralink.
This patch corrects the faulty inserted "+" on line 1045 fo file 
esw_rt3052.c so target can be compiled again.


diff --git 
a/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3052.c 
b/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3052.c
index e564dd8..b14422c 100644
--- a/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3052.c
+++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3052.c
@@ -1042,7 +1042,7 @@ esw_get_port_tr_badgood(struct switch_dev *dev,
         int shift = attr->id == RT5350_ESW_ATTR_PORT_TR_GOOD ? 0 : 16;
         u32 reg;

-+      if ((ralink_soc != RT305X_SOC_RT5350) && (ralink_soc != 
MT762X_SOC_MT7628AN) && (ralink_soc != MT762X_SOC_MT7688))
+       if ((ralink_soc != RT305X_SOC_RT5350) && (ralink_soc != 
MT762X_SOC_MT7628AN) && (ralink_soc != MT762X_SOC_MT7688))
                 return -EINVAL;

         if (idx < 0 || idx >= RT305X_ESW_NUM_LANWAN)
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list