[OpenWrt-Devel] [PATCH v2 1/3] ramips: Fix whitespace in the switch driver.

Vittorio G (VittGam) openwrt at vittgam.net
Fri Dec 11 20:10:52 EST 2015


Signed-off-by: Vittorio Gambaletta <openwrt at vittgam.net>

---

At the end, let's leave port_map and reg_init, and in the next patch
reuse port_map for port_disable too.

Please apply to both trunk and CC.

--- a/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3052.c
+++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3052.c
@@ -1417,19 +1417,19 @@ static int esw_probe(struct platform_device *pdev)
 	}
 
	port_map = of_get_property(np, "ralink,portmap", NULL);
-        if (port_map)
+	if (port_map)
		esw->port_map = be32_to_cpu(*port_map);
 
 	reg_init = of_get_property(np, "ralink,fct2", NULL);
-        if (reg_init)
+	if (reg_init)
 		esw->reg_initval_fct2 = be32_to_cpu(*reg_init);
 
 	reg_init = of_get_property(np, "ralink,fpa2", NULL);
-        if (reg_init)
+	if (reg_init)
 		esw->reg_initval_fpa2 = be32_to_cpu(*reg_init);
 
 	reg_init = of_get_property(np, "ralink,led_polarity", NULL);
-        if (reg_init)
+	if (reg_init)
 		esw->reg_led_polarity = be32_to_cpu(*reg_init);
 
 	swdev = &esw->swdev;
_______________________________________________
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