realtek: dts: drop trailing semicolons after macro use
Commitd52f7a4ca5("realtek: dts: new SWITCH_PORT_LED() macro") introduced a new macro to simplify switch port definitions and introduces usage of it for Zyxel XGS1X10-12 devices. However, this change added a DTS syntax issue because: > SWITCH_PORT_LED(...); produces > port@XX { ... };; because the macro already includes a trailing semicolon. The DT compiler doesn't like this so it fails with syntax error. Fix this by dropping the trailing semicolons after macro usages. Fixes:d52f7a4ca5("realtek: dts: new SWITCH_PORT_LED() macro") Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com> Link: https://github.com/openwrt/openwrt/pull/22614 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
0fe5684bbd
commit
83084bac95
@ -129,14 +129,14 @@
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
SWITCH_PORT_LED(0, 1, 2, 0, usxgmii);
|
||||
SWITCH_PORT_LED(1, 2, 2, 0, usxgmii);
|
||||
SWITCH_PORT_LED(2, 3, 2, 0, usxgmii);
|
||||
SWITCH_PORT_LED(3, 4, 2, 0, usxgmii);
|
||||
SWITCH_PORT_LED(4, 5, 2, 0, usxgmii);
|
||||
SWITCH_PORT_LED(5, 6, 2, 0, usxgmii);
|
||||
SWITCH_PORT_LED(6, 7, 2, 0, usxgmii);
|
||||
SWITCH_PORT_LED(7, 8, 2, 0, usxgmii);
|
||||
SWITCH_PORT_LED(0, 1, 2, 0, usxgmii)
|
||||
SWITCH_PORT_LED(1, 2, 2, 0, usxgmii)
|
||||
SWITCH_PORT_LED(2, 3, 2, 0, usxgmii)
|
||||
SWITCH_PORT_LED(3, 4, 2, 0, usxgmii)
|
||||
SWITCH_PORT_LED(4, 5, 2, 0, usxgmii)
|
||||
SWITCH_PORT_LED(5, 6, 2, 0, usxgmii)
|
||||
SWITCH_PORT_LED(6, 7, 2, 0, usxgmii)
|
||||
SWITCH_PORT_LED(7, 8, 2, 0, usxgmii)
|
||||
|
||||
port@24 {
|
||||
reg = <24>;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user